mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-06 23:25:06 +08:00
基于 /proxy-api 实现代理,简化 env.local 配置
This commit is contained in:
@ -35,7 +35,7 @@ module.exports = {
|
||||
open: true,
|
||||
proxy: {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
['/proxy-api']: {
|
||||
target: `http://localhost:48080`,
|
||||
// target: `http://api-dashboard.yudao.iocoder.cn`,
|
||||
changeOrigin: true,
|
||||
|
Reference in New Issue
Block a user