Browse Source

feat: 新增锁定和隐藏失焦

奔跑的面条 3 years ago
parent
commit
6f5d1d9459
1 changed files with 2 additions and 1 deletions
  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.updateComponentList(index, targetItem)
+          this.setTargetSelectChart(undefined)
           loadingFinish()
           loadingFinish()
           return
           return
         }
         }
@@ -875,6 +876,7 @@ export const useChartEditStore = defineStore({
             )
             )
           }
           }
           this.updateComponentList(index, targetItem)
           this.updateComponentList(index, targetItem)
+          this.setTargetSelectChart(undefined)
           loadingFinish()
           loadingFinish()
 
 
           // 取消选择隐藏
           // 取消选择隐藏
@@ -882,7 +884,6 @@ export const useChartEditStore = defineStore({
             const chartEditStore = useChartEditStore()
             const chartEditStore = useChartEditStore()
             chartEditStore.setTargetSelectChart(undefined)
             chartEditStore.setTargetSelectChart(undefined)
           }
           }
-          return
         }
         }
       } catch (value) {
       } catch (value) {
         loadingError()
         loadingError()