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

This commit is contained in:
奔跑的面条 2022-08-31 17:15:33 +08:00
parent 50e789ee11
commit c1bd7168e2

View File

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