paleDriver7's picture
Update frontend/babel.config.js
a1e210a verified
raw
history blame
344 Bytes
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
//配置前端的开发服务器的代理后端API
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8000', // 后端服务器地址
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
},
},
};