web/src/views/modules/basicInfo/ProductModelTree.vue
@@ -84,7 +84,6 @@ if (this.basic) { if (this.productList && this.productList[0].children) { this.defaultId = this.productList[0].children[0].id console.log(this.defaultId, 'this.defaultID') this.$nextTick(() => { this.$refs.tree.setCurrentKey(this.defaultId); //一定要加这个选中了否则样式没有出来 });