公众号登录调试

This commit is contained in:
Jason
2022-09-15 15:27:07 +08:00
parent 991734a41f
commit 786559a12b
51 changed files with 43 additions and 43 deletions

View File

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