授权登录
This commit is contained in:
@@ -25,12 +25,9 @@ export default {
|
||||
methods: {
|
||||
...mapActions(['autoLogin']),
|
||||
show() {
|
||||
tools.$getUserProfile().then(data => {
|
||||
this.userData = data.userInfo;
|
||||
this.userPhoneShow = true;
|
||||
})
|
||||
tools.$getLoginCode().then(res => {
|
||||
this.code = res.code;
|
||||
this.userPhoneShow = true;
|
||||
})
|
||||
},
|
||||
hide() {
|
||||
|
||||
@@ -91,6 +91,9 @@ const $getUserProfile = () => {
|
||||
lang: 'zh_CN',
|
||||
success: (data) => {
|
||||
resolve(data);
|
||||
},
|
||||
fail: (err)=> {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user