Przeglądaj źródła

conf: vue-cli配置项修改

cuiyalong 3 lat temu
rodzic
commit
c998037036
3 zmienionych plików z 7 dodań i 6 usunięć
  1. 1 1
      .env.development
  2. 2 1
      .eslintrc.js
  3. 4 4
      vue.config.js

+ 1 - 1
.env.development

@@ -1,3 +1,3 @@
 NODE_ENV=development
-VUE_APP_BASE_API = '/testServer'
+VUE_APP_BASE_API = ''
 BASE_URL = '/page_entniche/'

+ 2 - 1
.eslintrc.js

@@ -16,6 +16,7 @@ module.exports = {
     'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
     'no-any': [0, { 'ignore-rest-args': 0 }],
     '@typescript-eslint/no-explicit-any': ['off'],
-    '@typescript-eslint/camelcase': ['off']
+    '@typescript-eslint/camelcase': ['off'],
+    '@typescript-eslint/no-this-alias': ['off']
   }
 }

+ 4 - 4
vue.config.js

@@ -48,17 +48,17 @@ module.exports = {
     disableHostCheck: true,
     proxy: {
       '^/entbase': {
-        target: 'http://app2-jytest.jianyu360.cn',
+        target: 'http://app3-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug'
       },
       '^/entniche': {
-        target: 'http://app2-jytest.jianyu360.cn',
+        target: 'http://app3-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug'
       },
       '^/testServer': {
-        target: 'https://app2-jytest.jianyu360.cn',
+        target: 'http://app3-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug',
         pathRewrite: {
@@ -66,7 +66,7 @@ module.exports = {
         }
       },
       '^/jypay': {
-        target: 'https://app2-jytest.jianyu360.cn',
+        target: 'http://app3-jytest.jydev.jianyu360.com',
         changeOrigin: true,
         logLevel: 'debug',
         pathRewrite: {