ソースを参照

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

tnt group 3 年 前
コミット
abbf678e89
1 ファイル変更6 行追加0 行削除
  1. 6 0
      src/store/modules/chartEditStore/chartEditStore.ts

+ 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) {