修复了无限刷新和未登录设置语言

This commit is contained in:
2020-11-09 16:59:29 +08:00
parent 3ece8985ca
commit 9c24b82cf2
6 changed files with 20 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import { getaddr, userinfo } from '@/api';
import { getValue } from '@/utils/common';
import { isProxy } from 'vue';
import { createStore } from 'vuex'
@@ -67,6 +68,9 @@ export default createStore({
state.userinfo.languageValue = data[0] // 'en' 'zh'
state.userinfo.zoneStr = timeZoneFormatted;
state.userinfo.currency = data[2];
},
setWlan(state){
state.userinfo.languageValue = getValue("Lanvuage")
}
},
actions: {