From 56cc1f77120f792d7a6d43ba012e2f56d96138ca Mon Sep 17 00:00:00 2001 From: fangxiang Date: Sat, 18 Dec 2021 16:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8F=90=E4=BA=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AD=89=E5=BE=85=E6=9C=9F=E9=97=B4=E8=BF=98=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SystemSettingDialog.vue | 38 ++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/src/components/SystemSettingDialog.vue b/src/components/SystemSettingDialog.vue index 33d911b..2a3b4cd 100644 --- a/src/components/SystemSettingDialog.vue +++ b/src/components/SystemSettingDialog.vue @@ -40,13 +40,20 @@ name="network" icon="language" :label="$t('network setting')" + :disable="loading" /> + - @@ -64,6 +71,7 @@ v-model="auto_ip" :options="[$t('enable'), $t('disable')]" :loading="loading" + :disable="loading" /> @@ -75,6 +83,7 @@ @@ -183,6 +196,7 @@ @@ -195,6 +209,7 @@ @@ -207,6 +222,7 @@ @@ -219,6 +235,7 @@ @@ -242,6 +259,7 @@ @@ -251,7 +269,11 @@ $t("ntp server") + ":" }} - + @@ -262,6 +284,7 @@ @@ -274,6 +297,7 @@ @@ -281,6 +305,7 @@ @@ -293,6 +318,7 @@ @@ -531,10 +557,6 @@ export default defineComponent({ let success = false; try { - GlobalData.getInstance() - .getCurrentClient() - ?.setSystemNetwork(request); - success = true; setTimeout(() => { if (request.ip_address != $store.state.device_ip_address) { setTimeout(() => { @@ -550,6 +572,10 @@ export default defineComponent({ }, 1500); } }, 1000 * 10); + /*await*/ GlobalData.getInstance() + .getCurrentClient() + ?.setSystemNetwork(request); + success = true; } catch {} $q.notify({ color: success ? "positive" : "negative",