代码拉取完成,页面将自动刷新
const { defineConfig } = require('@vue/cli-service')
const proxyTarget = 'http://127.0.0.1:48080'
module.exports = defineConfig({
transpileDependencies: true,
//see: https://webpack.js.org/configuration/dev-server
devServer: {
port: 5173,
// the proxy setting: to solve CORS
proxy: {
'/admin-api': {
target: proxyTarget, // target host
ws: true, // proxy websockets
changeOrigin: true, // needed for virtual hosted sites
headers: {
referer: proxyTarget,
},
},
'/swagger-ui': {
target: proxyTarget, // target host
ws: true, // proxy websockets
changeOrigin: true, // needed for virtual hosted sites
headers: {
referer: proxyTarget,
},
},
'/v3/api-docs': {
target: proxyTarget, // target host
ws: true, // proxy websockets
changeOrigin: true, // needed for virtual hosted sites
headers: {
referer: proxyTarget,
},
},
},
},
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。