feat: 本次提交更新内容如下
store 和 router 封装完毕
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user