diff --git a/SafeCampus.WEB/src/components/TreeFilter/index.vue b/SafeCampus.WEB/src/components/TreeFilter/index.vue index 254e30a..21290dd 100644 --- a/SafeCampus.WEB/src/components/TreeFilter/index.vue +++ b/SafeCampus.WEB/src/components/TreeFilter/index.vue @@ -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; }