2026-04-02 09:23:57 +08:00
|
|
|
import { StrictMode } from "react"
|
|
|
|
|
import { createRoot } from "react-dom/client"
|
|
|
|
|
import { RouterProvider } from "react-router-dom"
|
2026-04-06 17:57:25 +08:00
|
|
|
import { Provider } from "react-redux"
|
|
|
|
|
import { PersistGate } from "redux-persist/integration/react"
|
2026-04-02 09:23:57 +08:00
|
|
|
import "@/init"
|
|
|
|
|
import router from "@/router"
|
2026-04-06 17:57:25 +08:00
|
|
|
import store, { persistor } from "@/store"
|
2026-04-02 09:23:57 +08:00
|
|
|
import "./index.css"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Main application entry point.
|
2026-04-02 01:27:56 +00:00
|
|
|
* Sets up the React app with React Router.
|
2026-04-02 09:23:57 +08:00
|
|
|
*/
|
|
|
|
|
createRoot(document.getElementById("root")!).render(
|
|
|
|
|
<StrictMode>
|
2026-04-06 17:57:25 +08:00
|
|
|
<Provider store={store}>
|
|
|
|
|
<PersistGate loading={null} persistor={persistor}>
|
|
|
|
|
<RouterProvider router={router} />
|
|
|
|
|
</PersistGate>
|
|
|
|
|
</Provider>
|
2026-04-02 09:23:57 +08:00
|
|
|
</StrictMode>,
|
|
|
|
|
)
|