fix(数据大屏): 开启分享修改不符合规则的密码触发校验,关闭窗口后再修改密码一直处于校验状态

This commit is contained in:
dataeaseShu
2025-12-04 14:52:18 +08:00
committed by dataeaseShu
parent ca70d0b721
commit 5429c2b897
3 changed files with 13 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
ref="appSaveForm"
:model="state.form"
:rules="isDatasourceMatch ? state.ruleDatasource : state.ruleDataset"
class="de-form-item app-form"
class="de-form-item app-form create-dialog"
label-width="180px"
label-position="top"
>

View File

@@ -60,6 +60,9 @@ const handleClose = done => {
done()
}
const cancel = () => {
state.form.pwd = ''
originPwd.value = ''
pwdForm.value.resetFields()
dialogVisible.value = false
}
const emits = defineEmits(['pwdChange'])

View File

@@ -275,6 +275,14 @@ const state = reactive({
watch(
() => props.resourceId,
() => {
shareEnable.value = false
state.detailInfo = {
id: '',
uuid: '',
pwd: '',
exp: 0,
autoPwd: true
}
popoverVisible.value = false
}
)
@@ -296,6 +304,7 @@ const hideShare = async () => {
return
}
}
const clickOutPopover = e => {
if (
!popoverVisible.value ||