diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index 41d2be22..131e8763 100644 --- a/src/store/modules/chartEditStore/chartEditStore.ts +++ b/src/store/modules/chartEditStore/chartEditStore.ts @@ -843,7 +843,8 @@ export const useChartEditStore = defineStore({ ) } this.updateComponentList(index, targetItem) - this.setTargetSelectChart(undefined) + // 锁定添加失焦效果 + if(status) this.setTargetSelectChart(undefined) loadingFinish() return } @@ -876,14 +877,10 @@ export const useChartEditStore = defineStore({ ) } this.updateComponentList(index, targetItem) - this.setTargetSelectChart(undefined) loadingFinish() - // 取消选择隐藏 - if (status) { - const chartEditStore = useChartEditStore() - chartEditStore.setTargetSelectChart(undefined) - } + // 隐藏添加失焦效果 + if (status) this.setTargetSelectChart(undefined) } } catch (value) { loadingError() diff --git a/src/views/chart/ContentLayers/components/LayersStatus/index.vue b/src/views/chart/ContentLayers/components/LayersStatus/index.vue index 648d0842..e0cc2547 100644 --- a/src/views/chart/ContentLayers/components/LayersStatus/index.vue +++ b/src/views/chart/ContentLayers/components/LayersStatus/index.vue @@ -1,5 +1,5 @@