From fb6d881a164621d5e7619252cfaceecf65c73774 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Wed, 29 Oct 2025 15:34:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=B4=E6=97=B6=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=AF=95=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 ++ common/http.interceptor.js | 9 +++++---- pages/login/login/index.vue | 3 +++ static/common/js/router.js | 11 +++++++---- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/App.vue b/App.vue index e5201c2..a30b5dc 100644 --- a/App.vue +++ b/App.vue @@ -34,6 +34,8 @@ export default { } }, }); + // 先返回 + return if (!that.vuex_token) { const type = that.vuex_userType || 0; // 0:学生 1:教师 diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 10c99f9..f9ae4c2 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -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; diff --git a/pages/login/login/index.vue b/pages/login/login/index.vue index 94fb769..d914d82 100644 --- a/pages/login/login/index.vue +++ b/pages/login/login/index.vue @@ -357,6 +357,9 @@ export default { // 登录 login() { + console.log("登录..."); + + return; // const res = { // data: { // // token: diff --git a/static/common/js/router.js b/static/common/js/router.js index 8e1bd25..856101c 100644 --- a/static/common/js/router.js +++ b/static/common/js/router.js @@ -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; }