mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 05:09:41 +08:00
===优化
This commit is contained in:
@@ -154,7 +154,7 @@ export const ResourceImagesPage = () => {
|
||||
text={"图片"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setCategoryIds(keys);
|
||||
if (typeof title == "string") {
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
} else {
|
||||
setLabel(title.props.children[0]);
|
||||
|
||||
@@ -169,7 +169,7 @@ export const ResourceVideosPage = () => {
|
||||
text={"视频"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setCategoryIds(keys);
|
||||
if (typeof title == "string") {
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
} else {
|
||||
setLabel(title.props.children[0]);
|
||||
|
||||
Reference in New Issue
Block a user