5 Star 1 Fork 0

Serio/移动端 校园信息平台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
清河 提交于 2022-04-24 17:33 +08:00 . 修改名字
module.exports = {
devServer: {
proxy: {
'/back': {
target: 'http://mercuryblog.site:8080/',
// 允许跨域
changeOrigin: true,
ws: true,
pathRewrite: {
'^/back': ''
}
},
'/yb': {
// 此处的写法,目的是为了 将 /api 替换成 https://www.baidu.com/
target: 'https://openapi.yiban.cn/data/download?access_token=f39cf499ff748823324c1875b704f4c615a95bae',
// 允许跨域
changeOrigin: true,
ws: true,
pathRewrite: {
'^/yb': ''
}
},
},
open : true
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Serio/school_active.git
[email protected]:Serio/school_active.git
Serio
school_active
移动端 校园信息平台
master

搜索帮助