Commit e4402b95 by hank

bug

parent 78fb990e
...@@ -118,16 +118,22 @@ export default { ...@@ -118,16 +118,22 @@ export default {
this.hiddenBar(); this.hiddenBar();
this.getUserInfo(); this.getUserInfo();
}, },
activated() {
this.getUserInfo()
},
methods: { methods: {
getUserInfo() { getUserInfo() {
axios.get('/contest/user/info').then(res => { axios.get('/contest/user/info').then(res => {
// alert(JSON.stringify(res.data.data))
this.realName = res.data.data.real_name.trim(); this.realName = res.data.data.real_name.trim();
this.phoneNumber = res.data.data.mobile.trim(); this.phoneNumber = res.data.data.mobile.trim();
this.address = res.data.data.address.trim(); this.address = res.data.data.address.trim();
this.area = res.data.data.area.trim(); this.area = res.data.data.area.trim();
this.userId = res.data.data.id; this.userId = res.data.data.id;
this.company = res.data.data.company.trim(); this.company = res.data.data.company.trim();
}); });
}, },
getIndex(arr, key, value) { getIndex(arr, key, value) {
// let arr = [] // let arr = []
......
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 sign in to comment