根据默认获取区号
This commit is contained in:
parent
c73f45d27e
commit
97a5090e0f
@ -21,7 +21,7 @@ export default defineComponent({
|
|||||||
setup(){
|
setup(){
|
||||||
console.log(i18ninit)
|
console.log(i18ninit)
|
||||||
const len = provideI18n(i18ninit);
|
const len = provideI18n(i18ninit);
|
||||||
len.locale.value = !getValue("Lanvuage") ? 'zh' : getValue("Lanvuage");
|
// len.locale.value = !getValue("Lanvuage") ? 'zh' : getValue("Lanvuage");
|
||||||
if(getValue('token')){
|
if(getValue('token')){
|
||||||
store.commit("login", true)
|
store.commit("login", true)
|
||||||
store.dispatch("setUserInfo");
|
store.dispatch("setUserInfo");
|
||||||
|
@ -893,7 +893,8 @@ export async function register(data: any){
|
|||||||
name: data.name,
|
name: data.name,
|
||||||
email: data.emil,
|
email: data.emil,
|
||||||
mtongue: data.muyu,
|
mtongue: data.muyu,
|
||||||
tlanguage: data.jiaoshou
|
tlanguage: data.jiaoshou,
|
||||||
|
language: getValue("Lanvuage") || 'zh'
|
||||||
})
|
})
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
message.success(res.msg)
|
message.success(res.msg)
|
||||||
|
@ -99,8 +99,8 @@ export default createStore({
|
|||||||
state.userinfo.languageValue = data.yy // 'en' 'zh'
|
state.userinfo.languageValue = data.yy // 'en' 'zh'
|
||||||
state.userinfo.zoneStr = timeZoneFormatted;
|
state.userinfo.zoneStr = timeZoneFormatted;
|
||||||
state.userinfo.currency = data.hb;
|
state.userinfo.currency = data.hb;
|
||||||
saveValue("Lanvuage", data.yx);
|
saveValue("Lanvuage", data.yy);
|
||||||
if( data.yx != geti18n().$s()){
|
if( data.yy != geti18n().$s()){
|
||||||
location.reload()
|
location.reload()
|
||||||
}
|
}
|
||||||
// setLanvuage(data[0]);
|
// setLanvuage(data[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user