You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
738 B
29 lines
738 B
import "@/router/reactActivationSetup";
|
|
import "@arco-design/web-react/dist/css/arco.css";
|
|
import "@/index.css";
|
|
import "@/i18n";
|
|
import "@/utils/globalCn";
|
|
import { createRoot } from "react-dom/client";
|
|
import { AliveScope } from "react-activation";
|
|
import { RouterProvider } from "react-router-dom";
|
|
import { router } from "@/router";
|
|
import { applyExternalTokenFromUrl } from "@/utils/externalLoginFromUrl";
|
|
import "@/assets/styles/font.css";
|
|
|
|
import App from "@/App";
|
|
|
|
applyExternalTokenFromUrl();
|
|
|
|
const root = document.getElementById("root");
|
|
if (!root) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
createRoot(root).render(
|
|
<>
|
|
<App />
|
|
<AliveScope>
|
|
<RouterProvider router={router} />
|
|
</AliveScope>
|
|
</>,
|
|
);
|
|
|