Files
Arbitrate-FrontendH5/vue.config.js
T

25 lines
743 B
JavaScript
Raw Normal View History

2024-01-18 10:46:33 +08:00
const { defineConfig } = require('@vue/cli-service')
2023-11-10 18:57:18 +08:00
module.exports = defineConfig({
2024-04-19 18:15:23 +08:00
transpileDependencies: true,
devServer: {
proxy: {
'/tiaojie': {
target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
2024-04-22 10:23:32 +08:00
'^/tiaojie': '' // 将/api前缀重写为空字符串
2024-04-19 18:15:23 +08:00
},
},
'/zhongcai': {
target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
'^/zhongcai': '' // 将/api前缀重写为空字符串
},
}
}
}
2024-01-18 10:46:33 +08:00
})