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