1 Star 0 Fork 762

LCJ / qiwen-file-web

forked from 奇文社区 / qiwen-file-web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 672 Bytes
一键复制 编辑 原始数据 按行查看 历史
const productConfig = require('./public/config.json')
module.exports = {
// 选项...
publicPath: '/',
//是否开启eslint校验
lintOnSave: false,
devServer: {
disableHostCheck: true,
host: '0.0.0.0',
proxy: { //配置代理,解决跨域请求后台数据的问题
'/api': {
target: productConfig.baseUrl, //后台接口,连接本地服务
ws: true, //是否跨域
changeOrigin: true,
pathRewrite: {
'^/api':'/'
}
}
}
},
productionSourceMap: false,
pluginOptions: {
'style-resources-loader': {
preProcessor: 'stylus',
patterns: []
}
}
}
JavaScript
1
https://gitee.com/lcjloveyou/qiwen-file-web.git
git@gitee.com:lcjloveyou/qiwen-file-web.git
lcjloveyou
qiwen-file-web
qiwen-file-web
master

搜索帮助