2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

fix: 模态窗点击遮罩关闭时自动重置数据

This commit is contained in:
2025-06-04 04:20:51 +08:00
parent 4f39f62208
commit c5b23feeac
3 changed files with 3 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ const handleClose = () => {
:bordered="false"
:segmented="false"
@close="handleClose"
@mask-click="handleClose"
>
<n-form :model="model">
<n-form-item path="channel" :label="$gettext('Channel')">

View File

@@ -568,6 +568,7 @@ onUnmounted(() => {
:bordered="false"
:segmented="false"
@close="handleShowModalClose"
@mask-click="handleShowModalClose"
>
<n-tabs type="line" animated>
<n-tab-pane name="cert" :tab="$gettext('Certificate')">

View File

@@ -132,6 +132,7 @@ onMounted(() => {
:bordered="false"
:segmented="false"
@close="handleClose"
@mask-click="handleClose"
>
<n-form :model="createModel">
<n-form-item path="name" :label="$gettext('Container Name')">