修复了无限刷新和未登录设置语言
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user