From 612600fef33a579a3695b60fabbc02fe10a3b8b2 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 23 May 2024 10:42:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E4=BA=AB=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E6=9C=AA=E5=BC=80=E5=90=AF=E5=88=86=E4=BA=AB=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/share/ShareHandler.vue | 4 ++++ core/core-frontend/src/views/share/share/ShareVisualHead.vue | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/core-frontend/src/views/share/share/ShareHandler.vue b/core/core-frontend/src/views/share/share/ShareHandler.vue index 9539e5795d..31d83fc2d2 100644 --- a/core/core-frontend/src/views/share/share/ShareHandler.vue +++ b/core/core-frontend/src/views/share/share/ShareHandler.vue @@ -327,6 +327,10 @@ const expChangeHandler = exp => { }) } const beforeClose = async done => { + if (!shareEnable.value) { + done() + return + } const pwdValid = validatePwdFormat() const uuidValid = await validateUuid() if (pwdValid && uuidValid) { diff --git a/core/core-frontend/src/views/share/share/ShareVisualHead.vue b/core/core-frontend/src/views/share/share/ShareVisualHead.vue index 405ffc30cc..5399827c96 100644 --- a/core/core-frontend/src/views/share/share/ShareVisualHead.vue +++ b/core/core-frontend/src/views/share/share/ShareVisualHead.vue @@ -167,6 +167,10 @@ watch( } ) const hideShare = async () => { + if (!shareEnable.value) { + popoverVisible.value = false + return + } const pwdValid = validatePwdFormat() const uuidValid = await validateUuid() if (pwdValid && uuidValid) {