Jelajahi Sumber

fix(ProductModal): 修复树节点默认高亮时未更新分类ID和表格数据的问题

liujt 6 bulan lalu
induk
melakukan
275bd27897

+ 2 - 0
src/views/rulesManagement/matterRules/components/ProductModal.vue

@@ -223,8 +223,10 @@
               // 默认高亮第一级树节点
               if (this.treeList[0]) {
                 this.rootTreeId = this.treeList[0].id;
+                this.categoryLevelId = this.treeList[0].id;
                 this.$nextTick(() => {
                   this.$refs.treeRef.setCurrentKey(this.treeList[0].id);
+                  this.$refs.table.reload({ pageNum: 1 });
                 });
               }
             });