|
@@ -134,6 +134,7 @@ export default {
|
|
|
login(_this.form).then(ret => {
|
|
|
uni.hideLoading();
|
|
|
let res = ret.data ? ret.data : ret;
|
|
|
+ console.log(res,'--------')
|
|
|
if (res.status == 200) {
|
|
|
_this.$u.vuex('vuex_token', 'Bearer ' + res.access_token);
|
|
|
_this.$u.vuex('vuex_userData', _this.fiterAuthCode(res.auth_user));
|
|
@@ -158,6 +159,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
toMain() {
|
|
|
+ console.log('toMain')
|
|
|
// 跳转到首页
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/index/index'
|