feat: 添加路由守卫与拦截器

This commit is contained in:
landaiqing
2024-05-28 02:07:05 +08:00
parent ce246ae2fe
commit cb9c827220
5 changed files with 82 additions and 10 deletions

10
src/App.tsx Normal file
View File

@@ -0,0 +1,10 @@
/** @format */
import routes from "@/router/routes.ts";
import { RouterGuard } from "@/router/guard.ts";
function App() {
return <div className="App">{RouterGuard(routes)}</div>;
}
export default App;