1 Star 0 Fork 0

LinkTwist/easy-admin-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
LinkTwist 提交于 2022-12-07 21:10 . feat: 绘制ui,对接角色&菜单api
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,
},
},
},
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/cuukenn/easy-admin-web.git
[email protected]:cuukenn/easy-admin-web.git
cuukenn
easy-admin-web
easy-admin-web
master

搜索帮助