浏览代码

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