Skip to content

Commit 6b7ee3d

Browse files
authored
⚡️ 更快导入腳本 (#498)
* 更快导入腳本 * 注釋 await sleep(1);
1 parent 1f346cc commit 6b7ee3d

8 files changed

Lines changed: 320 additions & 252 deletions

File tree

src/pages/confirm/main.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ const loggerCore = new LoggerCore({
1919

2020
loggerCore.logger().debug("confirm page start");
2121

22+
const Root = (
23+
<Provider store={store}>
24+
<MainLayout className="!flex-col !px-4 box-border">
25+
<App />
26+
</MainLayout>
27+
</Provider>
28+
);
29+
2230
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
23-
<React.StrictMode>
24-
<Provider store={store}>
25-
<MainLayout className="!flex-col !px-4 box-border">
26-
<App />
27-
</MainLayout>
28-
</Provider>
29-
</React.StrictMode>
31+
process.env.NODE_ENV === "development" ? <React.StrictMode>{Root}</React.StrictMode> : Root
3032
);

0 commit comments

Comments
 (0)