Browse Source

修改字典没匹配到报错的兼容

zhy 1 month ago
parent
commit
bfde641704
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/cms/term.vue

+ 1 - 1
src/views/cms/term.vue

@@ -114,7 +114,7 @@ export default {
       if (this.mydata.type == 'catalog') this.setType();
       this.mydata.formData.parentId = e[`${this.mydata.classify}Id`];
       const dict = this.dict.type.term_type.find(j => j.value == this.mydata.type);
-      this.mydata.dialogInfo.title = `添加${dict.label}`;
+      this.mydata.dialogInfo.title = `添加${dict?.label}`;
       this.mydata.dialogInfo.dialogVisible = true;
     },
     // 列表修改