aerwen_web_nuxt/middleware/auth.ts
2023-06-28 19:02:53 +08:00

8 lines
248 B
TypeScript

// export default defineNuxtRouteMiddleware((to) => {
// const path = to['_route'].path
// const router = useRouter()
// if(path === '/'){
// console.log('要跳转到load页')
// location.href = '/load'
// }
// })