Commit 319ec225 by 杨北旺

app登录处处理

1 parent 031d7243
......@@ -6,7 +6,7 @@ import {
Notify
} from 'vant'
import store from '@/store'
import { common } from '../api/api'
import { common,equity } from '../api/api'
Vue.use(VueRouter)
const router = new VueRouter({
routes,
......@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => {
setUserInfo(data);
if(status) {
store.commit('reload');
}else {
equity.getCardInfo().then(res => {
let { code } = res;
if (code == 0) {
router.push({name: 'equity.index'})
}
})
}
// else {
// equity.getCardInfo().then(res => {
// let { code } = res;
// if (code == 0) {
// router.push({name: 'equity.index'})
// }
// })
// }
}
})
}
......
......@@ -266,6 +266,7 @@ export default {
this.isConcernFn();
//app那边可能拿不到头像---写这个重新获取一下
let { nickName, logo } = this.$store.state;
console.log('store',this.$store.state);
this.userInfo.nickName = nickName;
this.userInfo.logo = logo;
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!