Commit 64fc4d42 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化应用主题显示

parent 734e4c83
......@@ -376,10 +376,12 @@ export default {
},
// 过滤分类展示
filterItems(appThemeName) {
return (
this.categoryList.find((v) => v.id == appThemeName)?.categoryName ||
"--"
);
let row = this.categoryList.find((v) => v.id == appThemeName);
let str = "--";
if (row) {
str = row.categoryName;
}
return str;
},
// 预览图片
handlePreview(url) {
......
......@@ -360,10 +360,12 @@ export default {
},
// 过滤分类展示
filterItems(appThemeName) {
return (
this.categoryList.find((v) => v.id == appThemeName)?.categoryName ||
"--"
);
let row = this.categoryList.find((v) => v.id == appThemeName);
let str = "--";
if (row) {
str = row.categoryName;
}
return str;
},
// 预览图片
handlePreview(url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment