mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-22 14:45:43 +08:00
公众号登录调试
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user