Explorar el Código

fix(auth): 修改登录页面跳转路径

- 将登录页面路径从 /pages/login 修改为 /pages/hexiao/login
- 修复了401和-10错误码时的页面跳转逻辑
mws hace 3 días
padre
commit
95b2b5807f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/request.js

+ 1 - 1
utils/request.js

@@ -60,7 +60,7 @@ const request = config => {
       if (code === 401  || code === -10) {
         if (getToken()) {
           store.dispatch('LogOut').then(() => {
-            uni.reLaunch({ url: '/pages/login' })
+            uni.reLaunch({ url: '/pages/hexiao/login' })
           })
         }
         result.success = false