瀏覽代碼

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

奔跑的面条 3 年之前
父節點
當前提交
c1bd7168e2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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()