Files
RentWeAppFront/vue.config.js
2025-12-25 08:26:09 +08:00

29 lines
507 B
JavaScript

//配置后端路径请修改config.js
module.exports = {
publicPath: './',
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8089',
changeOrigin: true,
pathRewrite: {
}
}
}
}
}
// module.exports = {
// publicPath: './',
// devServer: {
// proxy: {
// '/api': {
// target: 'https://sourcebyte.vip',
// changeOrigin: true,
// pathRewrite: {
// '^/api': '/api'
// }
// }
// }
// }
// }