From 16f80ddfc338bc65a893c1b7eb93d1d9861158b2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 02 七月 2023 23:05:17 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/custom/components/chart/antv-G6/index.jsx | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-G6/index.jsx b/src/tabviews/custom/components/chart/antv-G6/index.jsx index d66d9c9..8d7f359 100644 --- a/src/tabviews/custom/components/chart/antv-G6/index.jsx +++ b/src/tabviews/custom/components/chart/antv-G6/index.jsx @@ -1571,9 +1571,9 @@ handleClick = (data = null) => { const { plot, config } = this.state - if (plot.click && !data) return - if (plot.click === 'menus') { + if (!data) return + let menu = null if (plot.menus && plot.menus.length > 0) { @@ -1604,6 +1604,8 @@ MKEmitter.emit('modifyTabs', newtab, true) } else if (plot.click === 'menu') { + if (!data) return + let menuId = plot.menu.slice(-1)[0] let newtab = window.GLOB.mkThdMenus.filter(m => m.MenuID === menuId)[0] -- Gitblit v1.8.0