lilei 3 년 전
부모
커밋
fd2e2e8434
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      pages/login/login.vue

+ 2 - 0
pages/login/login.vue

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