From fdef23064b801a06bbf369785dbbc14db14b707f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 22 Mar 2024 17:15:53 +0800
Subject: [PATCH] 回滚代码至2月28日
---
subPackage/workbench/components/cateSelector.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/subPackage/workbench/components/cateSelector.vue b/subPackage/workbench/components/cateSelector.vue
index 6faaf56..79d7442 100644
--- a/subPackage/workbench/components/cateSelector.vue
+++ b/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;
},
--
Gitblit v1.9.3