From 20bfdfc2c2d4a109d9ad9ec83c8896bb327770ef Mon Sep 17 00:00:00 2001 From: zprobot <1727697083@qq.com> Date: Sun, 6 Aug 2023 13:02:32 +0800 Subject: [PATCH] history-fix --- src/components/AeShow/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/AeShow/index.vue b/src/components/AeShow/index.vue index 10e36cf..3789f9c 100644 --- a/src/components/AeShow/index.vue +++ b/src/components/AeShow/index.vue @@ -136,8 +136,9 @@ const queryProtein = (input) => { // console.log("222",input.value) if (proteinTags.value.length != input.value.length) { router.push({ path: "/ae/tissues", query: { protein: proteinTags.value } }) + } else { + init() } - init() } // watch route @@ -391,7 +392,8 @@ const init = () => { }) myChart.setOption(options) setTimeout(() => { - let imgDataUrl = myChart.getDataURL({ + if (protein.value.length !== 0) { + let imgDataUrl = myChart.getDataURL({ type: 'svg', pixelRatio: 2, backgroundColor: '#fff', @@ -402,6 +404,7 @@ const init = () => { url: imgDataUrl } imgs.value.unshift(urlFile) + } },2000) }