mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix: 分享弹框未开启分享无法关闭
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user