feat(runtime): 即梦本机运行时 - 接入安全生成闭环与桌面本机渠道
Refs #225 Co-authored-by: zkhyww <127009345+zkhyww@users.noreply.github.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import React from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "antd/dist/reset.css";
|
||||
import "./styles/globals.css";
|
||||
import { RouterProvider } from "react-router";
|
||||
import { runLocalRuntimeBootstrap } from "@/services/local-runtime-bootstrap";
|
||||
|
||||
import { AppProviders } from "@/components/layout/app-providers";
|
||||
import { router } from "@/router";
|
||||
|
||||
document.body.style.fontFamily = '"SF Pro Display","SF Pro Text","PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif';
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<React.StrictMode>
|
||||
<AppProviders>
|
||||
<RouterProvider router={router} />
|
||||
</AppProviders>
|
||||
</React.StrictMode>,
|
||||
runLocalRuntimeBootstrap(
|
||||
{
|
||||
get href() {
|
||||
return window.location.href;
|
||||
},
|
||||
replaceUrl(url) {
|
||||
window.history.replaceState(window.history.state, "", url);
|
||||
},
|
||||
removeStorageItem(key) {
|
||||
window.localStorage.removeItem(key);
|
||||
},
|
||||
},
|
||||
() => {
|
||||
void import("./application");
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user