Merge pull request #9791 from dataease/pr@dev-v2@fix_share_can_not_close

fix: 分享弹框未开启分享无法关闭
This commit is contained in:
fit2cloud-chenyw 2024-05-23 10:43:36 +08:00 committed by GitHub
commit 00fc6cc287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {