refactor: 拆分管理端入口并优化构建分包
This commit is contained in:
1 parent
0f6ad8b993
commit
bf4bbf81c7
17 files changed
+455
-353
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { App, ConfigProvider } from "antd";
|
||||
import type { ConfigProviderProps } from "antd";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export function AdminConfigProvider({
|
||||
children,
|
||||
...props
|
||||
}: ConfigProviderProps & { children?: ReactNode }) {
|
||||
return (
|
||||
<ConfigProvider {...props}>
|
||||
<App>{children}</App>
|
||||
</ConfigProvider>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user