h5登录调试

This commit is contained in:
Jason
2022-09-15 15:44:34 +08:00
parent 354e07adf1
commit e71a5ab805
47 changed files with 44 additions and 45 deletions

View File

@@ -35,11 +35,11 @@ export function setupRouter() {
const app = getApp()
app.$router.afterEach((to: any, from: any) => {
console.log(to, from)
const index = whiteList.findIndex((item) => from.path.includes(item))
const index = whiteList.findIndex((item) => to.path.includes(item))
const userStore = useUserStore()
if (index == -1 && !userStore.isLogin) {
//保存登录前的路径
cache.set(BACK_URL, from.fullPath)
cache.set(BACK_URL, to.fullPath)
}
})

View File

@@ -60,7 +60,6 @@ export default class HttpRequest {
reject(err)
},
complete(err) {
console.log(err)
if (err.errMsg !== 'request:fail abort') {
requestCancel.remove(options.url)
}