配置不同命令,连接不同环境

This commit is contained in:
BOOL\25024
2025-03-06 15:21:33 +08:00
parent d8c692ed28
commit 578c6beaaa
5 changed files with 12 additions and 10 deletions

View File

@@ -35,12 +35,12 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8080`,
target: `http://localhost:8080`,
// 更改代理为本地地址
// target: `http://106.14.94.149:8080`,
// target: `http://192.168.2.21:8080`,
// target: `https://api.jsowellcloud.com`,
target: `https://apitest.jsowellcloud.com`,
// target: `https://apitest.jsowellcloud.com`,
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",