Forráskód Böngészése

feat: 新增锁定和隐藏失焦

奔跑的面条 3 éve
szülő
commit
6f5d1d9459
1 módosított fájl, 2 hozzáadás és 1 törlés
  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()