This commit is contained in:
22 2024-04-10 18:23:54 +08:00
parent 8859d8ab65
commit b1326ff2c0
2 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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