From 40ca38eddca37bdba8d403181eb5b129fd369a73 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 22 Mar 2024 18:41:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5tic?= =?UTF-8?q?ket=E5=8F=82=E6=95=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/link/view/index.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/frontend/src/views/link/view/index.vue b/core/frontend/src/views/link/view/index.vue index 01faf2ddc2..b615e765e1 100644 --- a/core/frontend/src/views/link/view/index.vue +++ b/core/frontend/src/views/link/view/index.vue @@ -125,19 +125,16 @@ export default { const tempParam = localStorage.getItem('jumpInfoParam') // 添加外部参数 const attachParamsEncode = this.$route.query.attachParams - - tempParam && loadingCount++ - attachParamsEncode && loadingCount++ - let argsObject = null - const args = this.ticketArgs try { - console.log(args) argsObject = JSON.parse(this.ticketArgs) } catch (error) { console.error(error) } const hasArgs = argsObject && Object.keys(argsObject) + tempParam && loadingCount++ + (attachParamsEncode || hasArgs) && loadingCount++ + if (attachParamsEncode || hasArgs) { try { let attachParam = null