This commit is contained in:
wtq
2026-05-20 15:11:51 +08:00
parent 65a9dc0522
commit 143939e8d0
3 changed files with 128 additions and 85 deletions

View File

@@ -34,53 +34,17 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `https://jxhorizon.jxc4.com/`,
// target: `http://192.168.0.75:8300/`,
// target: `http://localhost:8080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
},
// proxy: {
// "/v2": {
// target: "https://jxhorizon.jxc4.com",
// changeOrigin: true,
// secure: false,
// pathRewrite:{
// ['^v2']:"/"
// }
// }
// },
sockHost:"https://jxhorizon.jxc4.com/",
// sockHost:"http://192.168.0.75:8300",
},
// devServer: {
// port: port,
// disableHostCheck: true,
// proxy: {
// '/horizon': {
// target: 'https://jxhorizon.jxc4.com',
// changeOrigin: true,
// secure: false,
// pathRewrite: {
// '^/horizon': '/horizon'
// }
// }
// }
// },
// devServer: {
// port: port,
// disableHostCheck: true,
// // 👇 👇 只保留这个代理,不要加任何多余配置 👇 👇
// proxy: {
// '/horizon': {
// target: 'https://jxhorizon.jxc4.com',
// changeOrigin: true,
// secure: false,
// pathRewrite: {
// '^/horizon': '/horizon'
// }
// }
// }
// },
configureWebpack: {
name: name,
resolve: {
@@ -166,4 +130,4 @@ module.exports = {
}
)
}
}
}