fix: 临时注释认证相关代码并添加调试返回

This commit is contained in:
yangzhe 2025-10-29 15:34:39 +08:00
parent 3ca2035a43
commit fb6d881a16
4 changed files with 17 additions and 8 deletions

View File

@ -34,6 +34,8 @@ export default {
}
},
});
//
return
if (!that.vuex_token) {
const type = that.vuex_userType || 0; // 0: 1:

View File

@ -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;

View File

@ -357,6 +357,9 @@ export default {
//
login() {
console.log("登录...");
return;
// const res = {
// data: {
// // token:

View File

@ -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;
}