1. const { defineConfig } = require('@vue/cli-service')
    2. module.exports = defineConfig({
    3. transpileDependencies: true,
    4. devServer:{
    5. proxy:{
    6. "/getFile":{
    7. target:"http://localhost:8080/",//代理地址,这里设置的地址会代替axios中设置的baseURL
    8. changeOrigin:true// 如果接口跨域,需要进行这个参数配置
    9. }
    10. }
    11. },
    12. publicPath: "./",
    13. })