diff --git a/.env.development b/.env.development index 1940fd8..57fae11 100644 --- a/.env.development +++ b/.env.development @@ -3,11 +3,11 @@ ENV = 'development' # http://192.168.1.43:8324/admin # http://mer.crmeb.net/admin # base api -VUE_APP_BASE_API = 'http://192.168.1.32:8080' +VUE_APP_BASE_API = 'http://192.168.1.224:8324' # VUE_APP_BASE_API = 'https://plus.hwms.shop' # socket 连接地址 -VUE_APP_WS_URL = 'ws://192.168.1.32:8080' +VUE_APP_WS_URL = 'ws://192.168.1.224:8324' # VUE_APP_WS_URL = 'ws://plus.hwms.shop' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/vue.config.js b/vue.config.js index dd9aec7..c5ff437 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,13 +38,13 @@ module.exports = { errors: true }, before: require('./mock/mock-server.js') - // proxy: { - // '/api': { //接口地址 以 api开头的都走下面的配置 - // target: 'http://192.168.1.224:8324', //代理目标地址为后端服务器地址 - // ws: true, //是否支持 websocket 请求 支持 - // changeOrigin: true, //是否启用跨域 - // } - // } + proxy: { + '/api': { //接口地址 以 api开头的都走下面的配置 + target: 'http://192.168.1.224:8324', //代理目标地址为后端服务器地址 + ws: true, //是否支持 websocket 请求 支持 + changeOrigin: true, //是否启用跨域 + } + } }, configureWebpack: { // provide the app's title in webpack's name field, so that