proxy代理

const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({

transpileDependencies: true,

devServer: {

proxy: {

api: {

target: 'http://127.0.0.1:7001',

changeOrigin: true

}

}

}

})

你可能感兴趣的:(vue,vue.js,javascript,前端)