From 25118efba3499a0c596487522666712194ec74b7 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 26 Mar 2021 08:59:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/src/view/pages/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/gui/src/view/pages/index.vue b/packages/gui/src/view/pages/index.vue index a6cb23b..a74d0df 100644 --- a/packages/gui/src/view/pages/index.vue +++ b/packages/gui/src/view/pages/index.vue @@ -156,13 +156,14 @@ export default { console.log('index mounted') }, methods: { - modeChange (mode) { + async modeChange () { + const mode = this.config.app.mode if (mode === 'ow') { this.config.server.dns.speedTest.enabled = false - this.config.plugins.overwall.enabled = true + this.config.plugin.overwall.enabled = true } else if (mode === 'default') { - this.config.server.dns.speedTest.enabled = false - this.config.plugins.overwall.enabled = true + this.config.server.dns.speedTest.enabled = true + this.config.plugin.overwall.enabled = false } this.$api.config.save(this.config).then(() => { this.$message.info('设置已保存')