Browse Source

全局参数 2022年11月14日 sxm

master
[li_she] 3 years ago
parent
commit
91794e9b3f
  1. 4
      src/store/modules/user.js
  2. 4
      src/views/main.vue

4
src/store/modules/user.js

@ -27,10 +27,10 @@ export default {
state.userDisplay = userDisplay state.userDisplay = userDisplay
}, },
updateMultiLanguage (state,multiLanguage){ updateMultiLanguage (state,multiLanguage){
state.userDisplay = multiLanguage
state.multiLanguage = multiLanguage
}, },
updateAuthControl (state,authControl){ updateAuthControl (state,authControl){
state.userDisplay = authControl
state.authControl = authControl
} }
} }
} }

4
src/views/main.vue

@ -106,10 +106,10 @@
}, },
authControl: { authControl: {
get() { get() {
return this.$store.state.user.updateAuthControl
return this.$store.state.user.authControl
}, },
set(val) { set(val) {
this.$store.commit('user/updateUserDisplay', val)
this.$store.commit('user/updateAuthControl', val)
} }
} }
}, },

Loading…
Cancel
Save