Parcourir la source

feat: 新增锁定和隐藏失焦

奔跑的面条 il y a 3 ans
Parent
commit
6f5d1d9459
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/store/modules/chartEditStore/chartEditStore.ts

+ 2 - 1
src/store/modules/chartEditStore/chartEditStore.ts

@@ -843,6 +843,7 @@ export const useChartEditStore = defineStore({
             )
           }
           this.updateComponentList(index, targetItem)
+          this.setTargetSelectChart(undefined)
           loadingFinish()
           return
         }
@@ -875,6 +876,7 @@ export const useChartEditStore = defineStore({
             )
           }
           this.updateComponentList(index, targetItem)
+          this.setTargetSelectChart(undefined)
           loadingFinish()
 
           // 取消选择隐藏
@@ -882,7 +884,6 @@ export const useChartEditStore = defineStore({
             const chartEditStore = useChartEditStore()
             chartEditStore.setTargetSelectChart(undefined)
           }
-          return
         }
       } catch (value) {
         loadingError()