Explorar o código

perf: 优化出现弹窗后会复制图表的交互

奔跑的面条 %!s(int64=3) %!d(string=hai) anos
pai
achega
c1bd7168e2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/store/modules/chartEditStore/chartEditStore.ts

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

@@ -456,6 +456,8 @@ export const useChartEditStore = defineStore({
       try {
         // 暂不支持多选
         if (this.getTargetChart.selectId.length > 1) return
+        // 处理弹窗普通复制的场景
+        if (document.getElementsByClassName('n-modal-body-wrapper').length) return
 
         loadingStart()
         const index: number = this.fetchTargetIndex()