修改测试bug
This commit is contained in:
+19
-1
@@ -4,7 +4,17 @@ module.exports = defineConfig({
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/tiaojie': {
|
||||
target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
|
||||
// target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
|
||||
target: 'http://172.16.1.26:6001',
|
||||
changeOrigin: true, // 是否改变Origin头信息
|
||||
secure : false,
|
||||
pathRewrite: {
|
||||
'^/tiaojie': '' // 将/api前缀重写为空字符串
|
||||
},
|
||||
},
|
||||
'/tiaojiez': {
|
||||
target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
|
||||
// target: 'http://172.16.1.4:7001',
|
||||
changeOrigin: true, // 是否改变Origin头信息
|
||||
secure : false,
|
||||
pathRewrite: {
|
||||
@@ -12,6 +22,14 @@ module.exports = defineConfig({
|
||||
},
|
||||
},
|
||||
'/zhongcai': {
|
||||
target: 'https://api.xayunmei.com/zhongcaiapitest', // 后端服务器地址
|
||||
changeOrigin: true, // 是否改变Origin头信息
|
||||
secure : false,
|
||||
pathRewrite: {
|
||||
'^/zhongcai': '' // 将/api前缀重写为空字符串
|
||||
},
|
||||
},
|
||||
'/zhongcaiz': {
|
||||
target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
|
||||
changeOrigin: true, // 是否改变Origin头信息
|
||||
secure : false,
|
||||
|
||||
Reference in New Issue
Block a user