From dc188b1ed8abf2afdad4f18af11a0790979b1aab Mon Sep 17 00:00:00 2001 From: smail Date: Tue, 8 Sep 2026 16:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8F=90=E7=A4=BA=E9=97=AA=E7=83=81=E5=B9=B6=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E7=9C=9F=E5=AE=9E=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConfigEditor/ConfigEditor.vue | 46 ++--- .../ConfigSettings/ConfigSettings.js | 58 ++++-- test/frontend/config-settings.test.mjs | 182 +++++++++++++++++- 3 files changed, 242 insertions(+), 44 deletions(-) diff --git a/frontend/src/views/components/ConfigSettings/ConfigEditor/ConfigEditor.vue b/frontend/src/views/components/ConfigSettings/ConfigEditor/ConfigEditor.vue index 85ba13c..1c754e7 100644 --- a/frontend/src/views/components/ConfigSettings/ConfigEditor/ConfigEditor.vue +++ b/frontend/src/views/components/ConfigSettings/ConfigEditor/ConfigEditor.vue @@ -13,7 +13,7 @@ size="small" plain :loading="loading" - :disabled="!!working || sectionLoading || loading" + :disabled="busy || sectionLoading || loading" @click="refreshPage" > 刷新状态 @@ -48,13 +48,21 @@ show-icon class="config-alert" /> +
@@ -68,7 +76,7 @@ type="password" show-password clearable - :disabled="!canWrite || sectionLoading || !!working || !!sectionError || !!pendingCandidate" + :disabled="!canWrite || sectionLoading || busy || !!sectionError || !!pendingCandidate" :placeholder="secretField.placeholder" autocomplete="new-password" @update:model-value="updateSecret" @@ -77,14 +85,14 @@