suyanyan 4 months ago
parent
commit
069f370cd6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      SafeCampus.WEB/src/components/TreeFilter/index.vue

+ 1
- 1
SafeCampus.WEB/src/components/TreeFilter/index.vue View File

@@ -100,7 +100,7 @@ watch(
const setTreeAllData = (data: any) => {
//如果需要显示全部选项就加上全部,否则就拿到什么输出什么
if (props.showAll) {
treeAllData.value = [{ id: "", [props.label]: props.topName }, ...data];
treeAllData.value = [{ [props.id]: "", [props.label]: props.topName }, ...data];
} else {
treeAllData.value = data;
}


Loading…
Cancel
Save