Przeglądaj źródła

数据集表单左边树不显示bug

shenqilong 1 rok temu
rodzic
commit
861584ec07
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/business/platform/cat/type/tree.vue

+ 2 - 1
src/business/platform/cat/type/tree.vue

@@ -124,8 +124,9 @@ export default {
     methods: {
         loadTreeData () {
             findTreeData({ categoryKey: this.categoryKey }).then(response => {
-                const data = response.data || []
+                this.treeData = response.data || []
                 if (this.hasPermission) {
+                    const data = response.data || []
                     // this.treeData = this.treeData.filter(i => i.isShow !== '1')
                     // 处理isShow,父级节点不显示子节点都不显示
                     const noData = data.filter(item => item.isShow === '1')