xcx il y a 4 ans
Parent
révision
b849708468
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6
    1
      config/index.js

+ 6
- 1
config/index.js Voir le fichier

@@ -11,8 +11,13 @@ module.exports = {
11 11
     assetsSubDirectory: 'static',
12 12
     assetsPublicPath: '/',
13 13
     proxyTable: {
14
+      // '/api': {
15
+      //   target: 'http://123.57.65.31:9004',
16
+      //   changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
17
+      //   pathRewrite: { '^/api': '/api' }
18
+      // },
14 19
       '/api': {
15
-        target: 'http://123.57.65.31:9004',
20
+        target: 'https://app.xnsport.cn',
16 21
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
17 22
         pathRewrite: { '^/api': '/api' }
18 23
       }