8 lines
248 B
TypeScript
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'
|
|
// }
|
|
// })
|