From 828641ce9d4178bbff9030ad19ce93d0267f185c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 17 九月 2025 08:36:42 +0800
Subject: [PATCH] no message
---
zy-asrs-flow/config/config.ts | 313 ++++++++++++++++++++++++++--------------------------
1 files changed, 156 insertions(+), 157 deletions(-)
diff --git a/zy-asrs-flow/config/config.ts b/zy-asrs-flow/config/config.ts
index ef506ab..1ef70bc 100644
--- a/zy-asrs-flow/config/config.ts
+++ b/zy-asrs-flow/config/config.ts
@@ -1,157 +1,156 @@
-// https://umijs.org/config/
-import { defineConfig } from '@umijs/max';
-import { join } from 'path';
-import defaultSettings from './defaultSettings';
-import proxy from './proxy';
-import routes from './routes';
-
-const { REACT_APP_ENV = 'dev' } = process.env;
-
-export default defineConfig({
- /**
- * @name 寮�鍚� hash 妯″紡
- * @description 璁� build 涔嬪悗鐨勪骇鐗╁寘鍚� hash 鍚庣紑銆傞�氬父鐢ㄤ簬澧為噺鍙戝竷鍜岄伩鍏嶆祻瑙堝櫒鍔犺浇缂撳瓨銆�
- * @doc https://umijs.org/docs/api/config#hash
- */
- hash: true,
-
- /**
- * @name 鍏煎鎬ц缃�
- * @description 璁剧疆 ie11 涓嶄竴瀹氬畬缇庡吋瀹癸紝闇�瑕佹鏌ヨ嚜宸变娇鐢ㄧ殑鎵�鏈変緷璧�
- * @doc https://umijs.org/docs/api/config#targets
- */
- // targets: {
- // ie: 11,
- // },
- /**
- * @name 璺敱鐨勯厤缃紝涓嶅湪璺敱涓紩鍏ョ殑鏂囦欢涓嶄細缂栬瘧
- * @description 鍙敮鎸� path锛宑omponent锛宺outes锛宺edirect锛寃rappers锛宼itle 鐨勯厤缃�
- * @doc https://umijs.org/docs/guides/routes
- */
- // umi routes: https://umijs.org/docs/routing
- routes,
- /**
- * @name 涓婚鐨勯厤缃�
- * @description 铏界劧鍙富棰橈紝浣嗘槸鍏跺疄鍙槸 less 鐨勫彉閲忚缃�
- * @doc antd鐨勪富棰樿缃� https://ant.design/docs/react/customize-theme-cn
- * @doc umi 鐨則heme 閰嶇疆 https://umijs.org/docs/api/config#theme
- */
- theme: {
- // 濡傛灉涓嶆兂瑕� configProvide 鍔ㄦ�佽缃富棰橀渶瑕佹妸杩欎釜璁剧疆涓� default
- // 鍙湁璁剧疆涓� variable锛� 鎵嶈兘浣跨敤 configProvide 鍔ㄦ�佽缃富鑹茶皟
- 'root-entry-name': 'variable',
- },
- /**
- * @name moment 鐨勫浗闄呭寲閰嶇疆
- * @description 濡傛灉瀵瑰浗闄呭寲娌℃湁瑕佹眰锛屾墦寮�涔嬪悗鑳藉噺灏慾s鐨勫寘澶у皬
- * @doc https://umijs.org/docs/api/config#ignoremomentlocale
- */
- ignoreMomentLocale: true,
- /**
- * @name 浠g悊閰嶇疆
- * @description 鍙互璁╀綘鐨勬湰鍦版湇鍔″櫒浠g悊鍒颁綘鐨勬湇鍔″櫒涓婏紝杩欐牱浣犲氨鍙互璁块棶鏈嶅姟鍣ㄧ殑鏁版嵁浜�
- * @see 瑕佹敞鎰忎互涓� 浠g悊鍙兘鍦ㄦ湰鍦板紑鍙戞椂浣跨敤锛宐uild 涔嬪悗灏辨棤娉曚娇鐢ㄤ簡銆�
- * @doc 浠g悊浠嬬粛 https://umijs.org/docs/guides/proxy
- * @doc 浠g悊閰嶇疆 https://umijs.org/docs/api/config#proxy
- */
- proxy: proxy[REACT_APP_ENV as keyof typeof proxy],
- /**
- * @name 蹇�熺儹鏇存柊閰嶇疆
- * @description 涓�涓笉閿欑殑鐑洿鏂扮粍浠讹紝鏇存柊鏃跺彲浠ヤ繚鐣� state
- */
- fastRefresh: true,
- //============== 浠ヤ笅閮芥槸max鐨勬彃浠堕厤缃� ===============
- /**
- * @name 鏁版嵁娴佹彃浠�
- * @@doc https://umijs.org/docs/max/data-flow
- */
- model: {},
- /**
- * 涓�涓叏灞�鐨勫垵濮嬫暟鎹祦锛屽彲浠ョ敤瀹冨湪鎻掍欢涔嬮棿鍏变韩鏁版嵁
- * @description 鍙互鐢ㄦ潵瀛樻斁涓�浜涘叏灞�鐨勬暟鎹紝姣斿鐢ㄦ埛淇℃伅锛屾垨鑰呬竴浜涘叏灞�鐨勭姸鎬侊紝鍏ㄥ眬鍒濆鐘舵�佸湪鏁翠釜 Umi 椤圭洰鐨勬渶寮�濮嬪垱寤恒��
- * @doc https://umijs.org/docs/max/data-flow#%E5%85%A8%E5%B1%80%E5%88%9D%E5%A7%8B%E7%8A%B6%E6%80%81
- */
- initialState: {},
- /**
- * @name layout 鎻掍欢
- * @doc https://umijs.org/docs/max/layout-menu
- */
- title: 'Ant Design Pro',
- layout: {
- locale: true,
- ...defaultSettings,
- },
- /**
- * @name moment2dayjs 鎻掍欢
- * @description 灏嗛」鐩腑鐨� moment 鏇挎崲涓� dayjs
- * @doc https://umijs.org/docs/max/moment2dayjs
- */
- moment2dayjs: {
- preset: 'antd',
- plugins: ['duration'],
- },
- /**
- * @name 鍥介檯鍖栨彃浠�
- * @doc https://umijs.org/docs/max/i18n
- */
- locale: {
- // default zh-CN
- default: 'zh-CN',
- antd: true,
- // default true, when it is true, will use `navigator.language` overwrite default
- baseNavigator: true,
- },
- /**
- * @name antd 鎻掍欢
- * @description 鍐呯疆浜� babel import 鎻掍欢
- * @doc https://umijs.org/docs/max/antd#antd
- */
- antd: {},
- /**
- * @name 缃戠粶璇锋眰閰嶇疆
- * @description 瀹冨熀浜� axios 鍜� ahooks 鐨� useRequest 鎻愪緵浜嗕竴濂楃粺涓�鐨勭綉缁滆姹傚拰閿欒澶勭悊鏂规銆�
- * @doc https://umijs.org/docs/max/request
- */
- request: {},
- /**
- * @name 鏉冮檺鎻掍欢
- * @description 鍩轰簬 initialState 鐨勬潈闄愭彃浠讹紝蹇呴』鍏堟墦寮� initialState
- * @doc https://umijs.org/docs/max/access
- */
- access: {},
- /**
- * @name <head> 涓澶栫殑 script
- * @description 閰嶇疆 <head> 涓澶栫殑 script
- */
- headScripts: [
- // 瑙e喅棣栨鍔犺浇鏃剁櫧灞忕殑闂
- { src: '/scripts/loading.js', async: true },
- ],
- //================ pro 鎻掍欢閰嶇疆 =================
- presets: ['umi-presets-pro'],
- /**
- * @name openAPI 鎻掍欢鐨勯厤缃�
- * @description 鍩轰簬 openapi 鐨勮鑼冪敓鎴恠erve 鍜宮ock锛岃兘鍑忓皯寰堝鏍锋澘浠g爜
- * @doc https://pro.ant.design/zh-cn/docs/openapi/
- */
- openAPI: [
- {
- requestLibPath: "import { request } from '@umijs/max'",
- // 鎴栬�呬娇鐢ㄥ湪绾跨殑鐗堟湰
- // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
- schemaPath: join(__dirname, 'oneapi.json'),
- mock: false,
- },
- {
- requestLibPath: "import { request } from '@umijs/max'",
- schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
- projectName: 'swagger',
- },
- ],
- mfsu: {
- strategy: 'normal',
- },
- esbuildMinifyIIFE: true,
- requestRecord: {},
- publicPath: './'
-});
+// https://umijs.org/config/
+import { defineConfig } from '@umijs/max';
+import { join } from 'path';
+import defaultSettings from './defaultSettings';
+import proxy from './proxy';
+import routes from './routes';
+
+const { REACT_APP_ENV = 'dev' } = process.env;
+
+export default defineConfig({
+ /**
+ * @name 寮�鍚� hash 妯″紡
+ * @description 璁� build 涔嬪悗鐨勪骇鐗╁寘鍚� hash 鍚庣紑銆傞�氬父鐢ㄤ簬澧為噺鍙戝竷鍜岄伩鍏嶆祻瑙堝櫒鍔犺浇缂撳瓨銆�
+ * @doc https://umijs.org/docs/api/config#hash
+ */
+ hash: true,
+
+ /**
+ * @name 鍏煎鎬ц缃�
+ * @description 璁剧疆 ie11 涓嶄竴瀹氬畬缇庡吋瀹癸紝闇�瑕佹鏌ヨ嚜宸变娇鐢ㄧ殑鎵�鏈変緷璧�
+ * @doc https://umijs.org/docs/api/config#targets
+ */
+ // targets: {
+ // ie: 11,
+ // },
+ /**
+ * @name 璺敱鐨勯厤缃紝涓嶅湪璺敱涓紩鍏ョ殑鏂囦欢涓嶄細缂栬瘧
+ * @description 鍙敮鎸� path锛宑omponent锛宺outes锛宺edirect锛寃rappers锛宼itle 鐨勯厤缃�
+ * @doc https://umijs.org/docs/guides/routes
+ */
+ // umi routes: https://umijs.org/docs/routing
+ routes,
+ /**
+ * @name 涓婚鐨勯厤缃�
+ * @description 铏界劧鍙富棰橈紝浣嗘槸鍏跺疄鍙槸 less 鐨勫彉閲忚缃�
+ * @doc antd鐨勪富棰樿缃� https://ant.design/docs/react/customize-theme-cn
+ * @doc umi 鐨則heme 閰嶇疆 https://umijs.org/docs/api/config#theme
+ */
+ theme: {
+ // 濡傛灉涓嶆兂瑕� configProvide 鍔ㄦ�佽缃富棰橀渶瑕佹妸杩欎釜璁剧疆涓� default
+ // 鍙湁璁剧疆涓� variable锛� 鎵嶈兘浣跨敤 configProvide 鍔ㄦ�佽缃富鑹茶皟
+ 'root-entry-name': 'variable',
+ },
+ /**
+ * @name moment 鐨勫浗闄呭寲閰嶇疆
+ * @description 濡傛灉瀵瑰浗闄呭寲娌℃湁瑕佹眰锛屾墦寮�涔嬪悗鑳藉噺灏慾s鐨勫寘澶у皬
+ * @doc https://umijs.org/docs/api/config#ignoremomentlocale
+ */
+ ignoreMomentLocale: true,
+ /**
+ * @name 浠g悊閰嶇疆
+ * @description 鍙互璁╀綘鐨勬湰鍦版湇鍔″櫒浠g悊鍒颁綘鐨勬湇鍔″櫒涓婏紝杩欐牱浣犲氨鍙互璁块棶鏈嶅姟鍣ㄧ殑鏁版嵁浜�
+ * @see 瑕佹敞鎰忎互涓� 浠g悊鍙兘鍦ㄦ湰鍦板紑鍙戞椂浣跨敤锛宐uild 涔嬪悗灏辨棤娉曚娇鐢ㄤ簡銆�
+ * @doc 浠g悊浠嬬粛 https://umijs.org/docs/guides/proxy
+ * @doc 浠g悊閰嶇疆 https://umijs.org/docs/api/config#proxy
+ */
+ proxy: proxy[REACT_APP_ENV as keyof typeof proxy],
+ /**
+ * @name 蹇�熺儹鏇存柊閰嶇疆
+ * @description 涓�涓笉閿欑殑鐑洿鏂扮粍浠讹紝鏇存柊鏃跺彲浠ヤ繚鐣� state
+ */
+ fastRefresh: true,
+ //============== 浠ヤ笅閮芥槸max鐨勬彃浠堕厤缃� ===============
+ /**
+ * @name 鏁版嵁娴佹彃浠�
+ * @@doc https://umijs.org/docs/max/data-flow
+ */
+ model: {},
+ /**
+ * 涓�涓叏灞�鐨勫垵濮嬫暟鎹祦锛屽彲浠ョ敤瀹冨湪鎻掍欢涔嬮棿鍏变韩鏁版嵁
+ * @description 鍙互鐢ㄦ潵瀛樻斁涓�浜涘叏灞�鐨勬暟鎹紝姣斿鐢ㄦ埛淇℃伅锛屾垨鑰呬竴浜涘叏灞�鐨勭姸鎬侊紝鍏ㄥ眬鍒濆鐘舵�佸湪鏁翠釜 Umi 椤圭洰鐨勬渶寮�濮嬪垱寤恒��
+ * @doc https://umijs.org/docs/max/data-flow#%E5%85%A8%E5%B1%80%E5%88%9D%E5%A7%8B%E7%8A%B6%E6%80%81
+ */
+ initialState: {},
+ /**
+ * @name layout 鎻掍欢
+ * @doc https://umijs.org/docs/max/layout-menu
+ */
+ title: 'Ant Design Pro',
+ layout: {
+ locale: true,
+ ...defaultSettings,
+ },
+ /**
+ * @name moment2dayjs 鎻掍欢
+ * @description 灏嗛」鐩腑鐨� moment 鏇挎崲涓� dayjs
+ * @doc https://umijs.org/docs/max/moment2dayjs
+ */
+ moment2dayjs: {
+ preset: 'antd',
+ plugins: ['duration'],
+ },
+ /**
+ * @name 鍥介檯鍖栨彃浠�
+ * @doc https://umijs.org/docs/max/i18n
+ */
+ locale: {
+ // default zh-CN / en-US
+ default: 'en-US',
+ antd: true,
+ // default true, when it is true, will use `navigator.language` overwrite default
+ baseNavigator: false,
+ },
+ /**
+ * @name antd 鎻掍欢
+ * @description 鍐呯疆浜� babel import 鎻掍欢
+ * @doc https://umijs.org/docs/max/antd#antd
+ */
+ antd: {},
+ /**
+ * @name 缃戠粶璇锋眰閰嶇疆
+ * @description 瀹冨熀浜� axios 鍜� ahooks 鐨� useRequest 鎻愪緵浜嗕竴濂楃粺涓�鐨勭綉缁滆姹傚拰閿欒澶勭悊鏂规銆�
+ * @doc https://umijs.org/docs/max/request
+ */
+ request: {},
+ /**
+ * @name 鏉冮檺鎻掍欢
+ * @description 鍩轰簬 initialState 鐨勬潈闄愭彃浠讹紝蹇呴』鍏堟墦寮� initialState
+ * @doc https://umijs.org/docs/max/access
+ */
+ access: {},
+ /**
+ * @name <head> 涓澶栫殑 script
+ * @description 閰嶇疆 <head> 涓澶栫殑 script
+ */
+ headScripts: [
+ // 瑙e喅棣栨鍔犺浇鏃剁櫧灞忕殑闂
+ { src: '/scripts/loading.js', async: true },
+ ],
+ //================ pro 鎻掍欢閰嶇疆 =================
+ presets: ['umi-presets-pro'],
+ /**
+ * @name openAPI 鎻掍欢鐨勯厤缃�
+ * @description 鍩轰簬 openapi 鐨勮鑼冪敓鎴恠erve 鍜宮ock锛岃兘鍑忓皯寰堝鏍锋澘浠g爜
+ * @doc https://pro.ant.design/zh-cn/docs/openapi/
+ */
+ openAPI: [
+ // {
+ // requestLibPath: "import { request } from '@umijs/max'",
+ // // 鎴栬�呬娇鐢ㄥ湪绾跨殑鐗堟湰
+ // // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
+ // schemaPath: join(__dirname, 'oneapi.json'),
+ // mock: false,
+ // },
+ // {
+ // requestLibPath: "import { request } from '@umijs/max'",
+ // schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
+ // projectName: 'swagger',
+ // },
+ ],
+ mfsu: {
+ strategy: 'normal',
+ },
+ esbuildMinifyIIFE: true,
+ requestRecord: {},
+});
--
Gitblit v1.9.1