公众号登录调试

This commit is contained in:
Jason
2022-09-15 15:38:54 +08:00
parent 786559a12b
commit 354e07adf1
49 changed files with 43 additions and 42 deletions

View File

@@ -34,6 +34,7 @@ export function setupRouter() {
// #ifdef H5
const app = getApp()
app.$router.afterEach((to: any, from: any) => {
console.log(to, from)
const index = whiteList.findIndex((item) => from.path.includes(item))
const userStore = useUserStore()
if (index == -1 && !userStore.isLogin) {