Kaynağa Gözat

fix: 隐藏后,立即取消选中组件

tnt group 3 yıl önce
ebeveyn
işleme
abbf678e89

+ 6 - 0
src/store/modules/chartEditStore/chartEditStore.ts

@@ -850,6 +850,12 @@ export const useChartEditStore = defineStore({
           }
           this.updateComponentList(index, targetItem)
           loadingFinish()
+
+          // 取消选择隐藏
+          if (status) {
+            const chartEditStore = useChartEditStore()
+            chartEditStore.setTargetSelectChart(undefined)
+          }
           return
         }
       } catch (value) {