diff --git a/config/config.ts b/config/config.ts
index d296d037..93a56470 100644
--- a/config/config.ts
+++ b/config/config.ts
@@ -117,8 +117,14 @@ export default defineConfig({
* @doc https://umijs.org/docs/max/antd#antd
*/
antd: {
- styleProvider: {
- cssVar: true,
+ appConfig: {},
+ configProvider: {
+ theme: {
+ cssVar: true,
+ token: {
+ fontFamily: 'AlibabaSans, sans-serif',
+ },
+ },
},
},
/**
diff --git a/src/app.tsx b/src/app.tsx
index 158e5249..eb530156 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -3,7 +3,6 @@ import type { Settings as LayoutSettings } from '@ant-design/pro-components';
import { SettingDrawer } from '@ant-design/pro-components';
import type { RunTimeLayoutConfig } from '@umijs/max';
import { history, Link } from '@umijs/max';
-import { App } from 'antd';
import React from 'react';
import {
AvatarDropdown,
@@ -149,7 +148,3 @@ export const layout: RunTimeLayoutConfig = ({
export const request = {
...errorConfig,
};
-
-export function rootContainer(container: React.ReactNode) {
- return {container};
-}
diff --git a/src/global.less b/src/global.less
index 1b5ae780..1959f4f7 100644
--- a/src/global.less
+++ b/src/global.less
@@ -1,3 +1,44 @@
+@font-face {
+ font-family: "AlibabaSans";
+ font-style: normal;
+ font-weight: 300;
+ font-display: swap;
+ src: url("//mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*1GSgSYDD_aIAAAAAQsAAAAgAegCCAQ/AlibabaSans-Light.woff2")
+ format("woff2");
+}
+@font-face {
+ font-family: "AlibabaSans";
+ font-style: normal;
+ font-weight: 400;
+ font-display: swap;
+ src: url("//mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*2zEUQqnPNesAAAAAQtAAAAgAegCCAQ/AlibabaSans-Regular.woff2")
+ format("woff2");
+}
+@font-face {
+ font-family: "AlibabaSans";
+ font-style: normal;
+ font-weight: 500;
+ font-display: swap;
+ src: url("//mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*E_cxRbMlZqUAAAAAQuAAAAgAegCCAQ/AlibabaSans-Medium.woff2")
+ format("woff2");
+}
+@font-face {
+ font-family: "AlibabaSans";
+ font-style: normal;
+ font-weight: 600;
+ font-display: swap;
+ src: url("//mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*E_cxRbMlZqUAAAAAQuAAAAgAegCCAQ/AlibabaSans-Bold.woff2")
+ format("woff2");
+}
+@font-face {
+ font-family: "AlibabaSans";
+ font-style: normal;
+ font-weight: 700;
+ font-display: swap;
+ src: url("//mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*E_cxRbMlZqUAAAAAQuAAAAgAegCCAQ/AlibabaSans-Heavy.woff2")
+ format("woff2");
+}
+
html,
body,
#root {
@@ -5,7 +46,7 @@ body,
margin: 0;
padding: 0;
font-family:
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
+ AlibabaSans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}
diff --git a/src/pages/User/Login/__snapshots__/login.test.tsx.snap b/src/pages/User/Login/__snapshots__/login.test.tsx.snap
index 2113d8a2..ff14ec21 100644
--- a/src/pages/User/Login/__snapshots__/login.test.tsx.snap
+++ b/src/pages/User/Login/__snapshots__/login.test.tsx.snap
@@ -3,7 +3,7 @@
exports[`Login Page should login success 1`] = `