From c5e280307e9ea652fd7b5e8771283e23a6b5ba5b Mon Sep 17 00:00:00 2001 From: otis <33190365+o-cc@users.noreply.github.com> Date: Mon, 22 Jan 2024 21:37:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96`iframe`=E7=BC=93?= =?UTF-8?q?=E5=AD=98=20(#879)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/frameView.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/layout/frameView.vue b/src/layout/frameView.vue index c7c9719d8..7e7725c05 100644 --- a/src/layout/frameView.vue +++ b/src/layout/frameView.vue @@ -48,14 +48,17 @@ function init() { watch( () => currentRoute.fullPath, path => { + if ( + currentRoute.name === "Redirect" && + path.includes(props.frameInfo?.fullPath) + ) { + frameSrc.value = path; // redirect时,置换成任意值,待重定向后 重新赋值 + loading.value = true; + } + // 重新赋值 if (props.frameInfo?.fullPath === path) { frameSrc.value = props.frameInfo?.frameSrc; } - // 重新加载 - if (path.indexOf("/redirect/") > -1) { - frameSrc.value = props.frameInfo?.fullPath; - loading.value = true; - } } ); From c1eaeeb3096d323a3845db8862cc6b2b18dba434 Mon Sep 17 00:00:00 2001 From: Rhh-Z <106086215+Rhh-Z@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:27:01 +0800 Subject: [PATCH 2/3] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=93=8D=E4=BD=9C=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=9C=A8?= =?UTF-8?q?=E7=BD=91=E7=BB=9C=E8=BE=83=E6=85=A2=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=A7=A6=E5=8F=91=E7=99=BB=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20(#880)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(function): 修复点击登录后再连续敲击回车会不断触发onLogin函数的问题 --- src/views/login/index.vue | 45 +++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 6fe4bd23a..fa8f353a4 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,13 +1,4 @@