perf: disable save button after successful save content

This commit is contained in:
Lykin 2024-01-21 22:33:45 +08:00
parent e3e0ed0a91
commit c2c1e9cfba
2 changed files with 3 additions and 2 deletions

View File

@ -151,6 +151,7 @@ const onSave = async () => {
decode: viewAs.decode,
})
if (success) {
viewAs.value = editingContent.value
$message.success(i18n.t('interface.save_value_succ'))
} else {
$message.error(msg)

View File

@ -287,7 +287,7 @@ const onClose = () => {
animated
pane-style="min-height: 50vh;"
placement="left"
tab-style="justify-content: right;"
tab-style="justify-content: right; font-weight: 420;"
type="line">
<!-- General pane -->
<n-tab-pane :tab="$t('dialogue.connection.general')" display-directive="show:lazy" name="general">
@ -526,7 +526,7 @@ const onClose = () => {
:disabled="!generalForm.ssl.enable"
:placeholder="$t('dialogue.connection.ssl.key_file_tip')" />
</n-form-item>
<n-form-item :label="$t('dialogue.connection.ssl.ca_file')">
<n-form-item :label="$t('dialogue.connection.ssl.ca_file')" :show-feedback="false">
<file-open-input
v-model:value="generalForm.ssl.caFile"
:disabled="!generalForm.ssl.enable"