shuishen
2024-03-22 fdef23064b801a06bbf369785dbbc14db14b707f
subPackage/workbench/components/cateSelector.vue
@@ -77,8 +77,8 @@
               parentName: "",
               childrenName: ""
            },
            index: "",
            tempIndex: ""
            index: null,
            tempIndex: null
         }
      },
@@ -131,13 +131,16 @@
               this.$set(this.selectedTemp, "parentName", this.selectedItem.parentName);
               this.$set(this.selectedTemp, "childrenId", this.selectedItem.childrenId);
               this.$set(this.selectedTemp, "childrenName", this.selectedItem.childrenName);
               this.tempIndex = this.index;
               if (this.index != "" && this.categoryList[this.index].hasChildren) {
                  this.childList = this.categoryList[this.index].children;
               if (this.index != null) {
                  this.tempIndex = this.index;
                  if ((this.index != "" || this.index != null) && this.categoryList[this.index].hasChildren) {
                     this.childList = this.categoryList[this.index].children;
                  }
                  if (this.index == "" || this.index == null) {
                     this.childList = [];
                  }
               }
               if (this.index == "") {
                  this.childList = [];
               }
            }
            this.isShow = false;
         },