Commit f5cf2960 authored by 沈翠玲's avatar 沈翠玲

登录时国际语言换字段

parent f54db501
......@@ -112,7 +112,7 @@ import {setLocal} from '@/lang'
this.loading = false;
this.$u.vuex('vuex_token', res.data.token)
console.log('res.data', res.data)
res.data.locale ? setLocal(res.data.locale.substring(0, 2)) : setLocal('zh')
res.data.local ? setLocal(res.data.local.substring(0, 2)) : setLocal('zh')
this.$u.vuex('vuex_user', res.data)
if (res.success) {
setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment