22 Star 88 Fork 36

济南驰骋公司 / 驰骋工作流引擎Vue版beta

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
masqueraded 提交于 2021-12-26 12:01 . 表单问题修复
module.exports = {
publicPath: '/', //publicPath取代了baseUrl
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: true,
runtimeCompiler: true, //关键点在这 原来的 Compiler 换成了 runtimeCompiler
// 调整内部的 webpack 配置。
// 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/webpack.md
chainWebpack: () => { },
configureWebpack: () => { },
// 配置 webpack-dev-server 行为。
devServer: {
open: process.platform === 'darwin',
proxy: { //可以代理多个项目
//第一个代理,这里的/api1和/api2就对应了第一步的 baseURL
"/api": {
target: "http://help.jflow.cn:8081", //只要是以/api开头的链接都会被代理到 这个target属性所代表的位置(我这里是:http://help.jflow.cn:8081/)
ws: false,
changeOrigin: true,
cookieDomainRewrite: {
"*": ""
},
cookiePathRewrite: {
"*": ""
},
timeout: 300000, //设置超时时间
pathRewrite: {
"^/api": "" //这里是将/api替换为空字符串“” ,也就是删除的意思
}
}
}
}
}
JavaScript
1
https://gitee.com/opencc/ccbpmVUE.git
git@gitee.com:opencc/ccbpmVUE.git
opencc
ccbpmVUE
驰骋工作流引擎Vue版beta
master

搜索帮助