From 91794e9b3fad611b7b7238c7dd907af53b80a1f4 Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Mon, 14 Nov 2022 17:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=8F=82=E6=95=B0=202022?= =?UTF-8?q?=E5=B9=B411=E6=9C=8814=E6=97=A5=20sxm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 4 ++-- src/views/main.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index d5e0279..1115695 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -27,10 +27,10 @@ export default { state.userDisplay = userDisplay }, updateMultiLanguage (state,multiLanguage){ - state.userDisplay = multiLanguage + state.multiLanguage = multiLanguage }, updateAuthControl (state,authControl){ - state.userDisplay = authControl + state.authControl = authControl } } } diff --git a/src/views/main.vue b/src/views/main.vue index 6afc483..51bde26 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -106,10 +106,10 @@ }, authControl: { get() { - return this.$store.state.user.updateAuthControl + return this.$store.state.user.authControl }, set(val) { - this.$store.commit('user/updateUserDisplay', val) + this.$store.commit('user/updateAuthControl', val) } } },