张涛 1 year ago
parent
commit
9c25a83a40
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      config/config.js

+ 7
- 5
config/config.js View File

7
 const { REACT_APP_ENV } = process.env;
7
 const { REACT_APP_ENV } = process.env;
8
 
8
 
9
 export default defineConfig({
9
 export default defineConfig({
10
+  mfsu: {},
11
+  webpack5: {},
10
   define: {
12
   define: {
11
     API_BASE: 'http://invoice-filling.stategrid.njyunzhi.com',
13
     API_BASE: 'http://invoice-filling.stategrid.njyunzhi.com',
12
-    H5_URL:'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html',
13
-    MODEL_URL:'https://h5.njyunzhi.com/assets/%E6%8A%A5%E9%94%80%E4%BA%BA%E5%91%98%E6%A8%A1%E6%9D%BF.xlsx'
14
+    H5_URL: 'http://h5.njyunzhi.com/state-grid/invoice-filling-h5/index.html',
15
+    MODEL_URL:
16
+      'https://h5.njyunzhi.com/assets/%E6%8A%A5%E9%94%80%E4%BA%BA%E5%91%98%E6%A8%A1%E6%9D%BF.xlsx',
14
   },
17
   },
15
-  base: '/',  // 路由跳转必须加 admin
18
+  base: '/', // 路由跳转必须加 admin
16
   publicPath: './', // 静态文件相对路径
19
   publicPath: './', // 静态文件相对路径
17
   hash: true,
20
   hash: true,
18
   history: {
21
   history: {
76
   nodeModulesTransform: {
79
   nodeModulesTransform: {
77
     type: 'none',
80
     type: 'none',
78
   },
81
   },
79
-  // mfsu: {},
80
-  webpack5: {},
82
+
81
   exportStatic: {},
83
   exportStatic: {},
82
 });
84
 });