소스 검색

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