Files
RentWeAppFront/vue.config.js

29 lines
507 B
JavaScript
Raw Permalink Normal View History

2025-11-14 11:39:33 +08:00
//配置后端路径请修改config.js
module.exports = {
publicPath: './',
devServer: {
proxy: {
'/api': {
2025-12-25 08:26:09 +08:00
target: 'http://localhost:8089',
2025-11-14 11:39:33 +08:00
changeOrigin: true,
pathRewrite: {
}
}
}
}
}
2025-12-25 08:26:09 +08:00
// module.exports = {
// publicPath: './',
// devServer: {
// proxy: {
// '/api': {
// target: 'https://sourcebyte.vip',
// changeOrigin: true,
// pathRewrite: {
// '^/api': '/api'
// }
// }
// }
// }
// }