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) {
|
||||
const type = that.vuex_userType || 0; // 0:学生 1:教师
|
||||
|
|
|
|||
|
|
@ -48,11 +48,12 @@ const install = (Vue, vm) => {
|
|||
Vue.prototype.$u.http.interceptor.response = (res) => {
|
||||
// uni.hideLoading();
|
||||
|
||||
// 先注释
|
||||
// 检查是否为401未授权错误
|
||||
if (res.statusCode === 401) {
|
||||
handleAuthError(vm);
|
||||
return false;
|
||||
}
|
||||
// if (res.statusCode === 401) {
|
||||
// handleAuthError(vm);
|
||||
// return false;
|
||||
// }
|
||||
|
||||
return res.data;
|
||||
|
||||
|
|
|
|||
|
|
@ -357,6 +357,9 @@ export default {
|
|||
|
||||
// 登录
|
||||
login() {
|
||||
console.log("登录...");
|
||||
|
||||
return;
|
||||
// const res = {
|
||||
// data: {
|
||||
// // token:
|
||||
|
|
|
|||
|
|
@ -31,10 +31,13 @@ const initApp = function (vm) {
|
|||
// uni.navigateTo({
|
||||
// url: config.loginPage
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: "/pages/login/login/index",
|
||||
});
|
||||
return false;
|
||||
|
||||
// 先注释
|
||||
// uni.navigateTo({
|
||||
// url: "/pages/login/login/index",
|
||||
// });
|
||||
// return false;
|
||||
return e;
|
||||
} else {
|
||||
return e;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue