修改请求地址

This commit is contained in:
GYJ
2024-12-26 14:29:24 +08:00
parent 1a3b207d4d
commit a526f5ddd6
6 changed files with 185 additions and 125 deletions

View File

@@ -12,19 +12,19 @@ module.exports = {
assetsPublicPath: '/',
// 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/sqx_fast': {
// target: 'http://192.168.0.132:8100/sqx_fast/',
// target: 'https://duanjuadmin.xianmxkj.com/sqx_fast/',
target: 'http://127.0.0.1/sqx_fast/',
'/czg': {
// target: 'http://192.168.0.132:8100/czg/',
// target: 'https://duanjuadmin.xianmxkj.com/czg/',
target: 'http://127.0.0.1/czg/',
changeOrigin: true,
pathRewrite: {
'^/sqx_fast': ''
'^/czg': ''
}
},
'/weixin': {
target: 'https://api.weixin.qq.com/',
// target: 'https://duanjuadmin.xianmxkj.com/sqx_fast/',
// target: 'http://127.0.0.1/sqx_fast/',
// target: 'https://duanjuadmin.xianmxkj.com/czg/',
// target: 'http://127.0.0.1/czg/',
changeOrigin: true,
pathRewrite: {
'^/weixin': ''