mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-26 20:46:15 +08:00
自动滚到到顶部
This commit is contained in:
@@ -8,6 +8,7 @@ import { ConfigProvider } from "antd";
|
||||
import zhCN from "antd/locale/zh_CN";
|
||||
import App from "./App";
|
||||
import "./index.scss"; //全局样式
|
||||
import AutoScorllTop from "./AutoTop";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<Provider store={store}>
|
||||
@@ -16,7 +17,9 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
theme={{ token: { colorPrimary: "#ff4d4f" } }}
|
||||
>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
<AutoScorllTop>
|
||||
<App />
|
||||
</AutoScorllTop>
|
||||
</BrowserRouter>
|
||||
</ConfigProvider>
|
||||
</Provider>
|
||||
|
||||
Reference in New Issue
Block a user