|
@@ -48,9 +48,13 @@ export const commonData = {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//获取个人信息
|
|
//获取个人信息
|
|
- getUserInfo() {
|
|
|
|
- this.$store.commit('SET_USERINFO', {})
|
|
|
|
- this.$api.getUserInfo().then(response => {
|
|
|
|
|
|
+ async getUserInfo() {
|
|
|
|
+ // var userinfo = this.$s.getObj('userinfo')
|
|
|
|
+ // if(userinfo){
|
|
|
|
+ // this.$store.commit('SET_USERINFO', {})
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ await this.$api.getUserInfo().then(response => {
|
|
localStorage.tenant = response.data.tenantId
|
|
localStorage.tenant = response.data.tenantId
|
|
this.$store.commit('SET_USERINFO', response.data)
|
|
this.$store.commit('SET_USERINFO', response.data)
|
|
|
|
|