diff --git a/.env.production b/.env.production index bdead2a..c213c90 100644 --- a/.env.production +++ b/.env.production @@ -8,3 +8,6 @@ ENV = 'production' # VUE_APP_BASE_API = 'http://192.168.0.105:9033' VUE_APP_BASE_API = 'http://39.101.188.84:9033' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 6e66aa1..cf32605 100644 --- a/vue.config.js +++ b/vue.config.js @@ -49,8 +49,8 @@ module.exports = { // }, // }, '/api': { - // target: `http://39.101.188.84:9033`, - target: `http://192.168.0.108:9033`, + target: `http://39.101.188.84:9033`, + // target: `http://192.168.0.108:9033`, changeOrigin: true, pathRewrite: { '^/api': ''