fix: 临时注释认证相关代码并添加调试返回
This commit is contained in:
parent
3ca2035a43
commit
fb6d881a16
2
App.vue
2
App.vue
|
|
@ -34,6 +34,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
// 先返回
|
||||||
|
return
|
||||||
|
|
||||||
if (!that.vuex_token) {
|
if (!that.vuex_token) {
|
||||||
const type = that.vuex_userType || 0; // 0:学生 1:教师
|
const type = that.vuex_userType || 0; // 0:学生 1:教师
|
||||||
|
|
|
||||||
|
|
@ -48,11 +48,12 @@ const install = (Vue, vm) => {
|
||||||
Vue.prototype.$u.http.interceptor.response = (res) => {
|
Vue.prototype.$u.http.interceptor.response = (res) => {
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
|
|
||||||
|
// 先注释
|
||||||
// 检查是否为401未授权错误
|
// 检查是否为401未授权错误
|
||||||
if (res.statusCode === 401) {
|
// if (res.statusCode === 401) {
|
||||||
handleAuthError(vm);
|
// handleAuthError(vm);
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -357,6 +357,9 @@ export default {
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
login() {
|
login() {
|
||||||
|
console.log("登录...");
|
||||||
|
|
||||||
|
return;
|
||||||
// const res = {
|
// const res = {
|
||||||
// data: {
|
// data: {
|
||||||
// // token:
|
// // token:
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,13 @@ const initApp = function (vm) {
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: config.loginPage
|
// url: config.loginPage
|
||||||
// })
|
// })
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pages/login/login/index",
|
// 先注释
|
||||||
});
|
// uni.navigateTo({
|
||||||
return false;
|
// url: "/pages/login/login/index",
|
||||||
|
// });
|
||||||
|
// return false;
|
||||||
|
return e;
|
||||||
} else {
|
} else {
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue