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.
21 lines
450 B
21 lines
450 B
import App from "./src/app";
|
|
import { ConfigProvider } from "antd";
|
|
import zhCN from "antd/locale/zh_CN";
|
|
import { checkAndSaveUserId } from "./src/utils";
|
|
import dayjs from "dayjs";
|
|
import "dayjs/locale/zh-cn";
|
|
|
|
dayjs.locale("zh-cn");
|
|
|
|
// 检查并保存userId
|
|
if (typeof window !== 'undefined') {
|
|
checkAndSaveUserId();
|
|
}
|
|
|
|
export default (x) => {
|
|
return (
|
|
<ConfigProvider locale={zhCN}>
|
|
<App />
|
|
</ConfigProvider>
|
|
);
|
|
};
|
|
|