fix: 优化按钮顺序

This commit is contained in:
耗子
2026-02-12 23:37:11 +08:00
parent 2b055d6e88
commit 0ea2117d96
+12 -12
View File
@@ -1964,18 +1964,6 @@ const removeCustomConfig = (index: number) => {
</n-spin>
<template #footer>
<n-flex justify="end">
<n-button @click="show = false">
{{ $gettext('Cancel') }}
</n-button>
<n-button
v-if="current !== 'log' && current !== 'error_log'"
type="primary"
:loading="saveLoading"
:disabled="saveLoading"
@click="handleSave"
>
{{ $gettext('Save') }}
</n-button>
<n-popconfirm v-if="current == 'log'" @positive-click="clearLog">
<template #trigger>
<n-button type="primary" :loading="clearLogLoading" :disabled="clearLogLoading">
@@ -2001,6 +1989,18 @@ const removeCustomConfig = (index: number) => {
</template>
{{ $gettext('Are you sure you want to reset the configuration?') }}
</n-popconfirm>
<n-button @click="show = false">
{{ $gettext('Cancel') }}
</n-button>
<n-button
v-if="current !== 'log' && current !== 'error_log'"
type="primary"
:loading="saveLoading"
:disabled="saveLoading"
@click="handleSave"
>
{{ $gettext('Save') }}
</n-button>
</n-flex>
</template>
</n-modal>