chore: basic layout
This commit is contained in:
8
src/routes/index.tsx
Normal file
8
src/routes/index.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router';
|
||||
|
||||
export const Route = createFileRoute('/')({
|
||||
// TODO: 登录校验
|
||||
beforeLoad: () => {
|
||||
throw redirect({ to: '/dashboard' });
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user