|
@@ -198,7 +198,6 @@ export default {
|
|
|
// spread_code: app.globalData.code
|
|
|
})
|
|
|
.then(res => {
|
|
|
- console.log(res);
|
|
|
if(res.code == 200){
|
|
|
this.$store.commit('LOGIN', {
|
|
|
token: res.data.access_token,
|
|
@@ -215,7 +214,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
// 自动登录失败时,跳转用户注册
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/users/register/index?account='+res.data.username
|
|
|
+ url: '/pages/users/register/index?account='+res.data.user_name
|
|
|
})
|
|
|
}, 2000);
|
|
|
}
|