===优化

This commit is contained in:
禺狨
2023-03-22 18:53:21 +08:00
parent c032727588
commit 954386df83
7 changed files with 11 additions and 11 deletions

View File

@@ -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]);

View File

@@ -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]);