feat: 添加alertMessageInfo

This commit is contained in:
zhangyu
2022-03-31 13:31:23 +08:00
parent 0c662135b4
commit 5e067891ff
5 changed files with 83 additions and 16 deletions

View File

@@ -167,14 +167,6 @@ export default {
this.$i18n.locale = this.lang
this.theme = res.data.user.theme
this.userInfo = res.data.user
// 获取可选语言
get('/sys/dict/all?type=lang').then(response => {
if (response.code === 200) {
const langList = response.data.map(lang => ({ name: lang.name, value: lang.value }))
this.$store.commit('setLangList', langList)
localStorage.setItem('nz-language-list', JSON.stringify(langList))
}
})
localStorage.setItem('nz-token', res.data.authToken)
if (res.data.authFlag === 1) {
if (res.data.authBind === 0) {