feat: 本次提交更新内容如下

store 和 router 封装完毕
This commit is contained in:
笔记本里的永平
2025-07-17 22:19:37 +08:00
parent 6a4e99885d
commit 9d18af22f1
9 changed files with 137 additions and 14 deletions

View File

@@ -1,22 +1,17 @@
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import AppRouter from "@/router";
import { Button } from "antd";
import { Button as MobileButton } from "antd-mobile";
import Home from "./pages/Home";
import About from "./pages/About";
function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
</Routes>
<>
<AppRouter />
<div style={{ margin: 16 }}>
<Button type="primary">Antd </Button>
<MobileButton color="primary">Antd-Mobile </MobileButton>
</div>
</BrowserRouter>
</>
);
}