mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-23 06:59:18 +08:00
h5登录调试
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user