perf: disable save button after successful save content
This commit is contained in:
parent
e3e0ed0a91
commit
c2c1e9cfba
|
@ -151,6 +151,7 @@ const onSave = async () => {
|
||||||
decode: viewAs.decode,
|
decode: viewAs.decode,
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
|
viewAs.value = editingContent.value
|
||||||
$message.success(i18n.t('interface.save_value_succ'))
|
$message.success(i18n.t('interface.save_value_succ'))
|
||||||
} else {
|
} else {
|
||||||
$message.error(msg)
|
$message.error(msg)
|
||||||
|
|
|
@ -287,7 +287,7 @@ const onClose = () => {
|
||||||
animated
|
animated
|
||||||
pane-style="min-height: 50vh;"
|
pane-style="min-height: 50vh;"
|
||||||
placement="left"
|
placement="left"
|
||||||
tab-style="justify-content: right;"
|
tab-style="justify-content: right; font-weight: 420;"
|
||||||
type="line">
|
type="line">
|
||||||
<!-- General pane -->
|
<!-- General pane -->
|
||||||
<n-tab-pane :tab="$t('dialogue.connection.general')" display-directive="show:lazy" name="general">
|
<n-tab-pane :tab="$t('dialogue.connection.general')" display-directive="show:lazy" name="general">
|
||||||
|
@ -526,7 +526,7 @@ const onClose = () => {
|
||||||
:disabled="!generalForm.ssl.enable"
|
:disabled="!generalForm.ssl.enable"
|
||||||
:placeholder="$t('dialogue.connection.ssl.key_file_tip')" />
|
:placeholder="$t('dialogue.connection.ssl.key_file_tip')" />
|
||||||
</n-form-item>
|
</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
|
<file-open-input
|
||||||
v-model:value="generalForm.ssl.caFile"
|
v-model:value="generalForm.ssl.caFile"
|
||||||
:disabled="!generalForm.ssl.enable"
|
:disabled="!generalForm.ssl.enable"
|
||||||
|
|
Loading…
Reference in New Issue