You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
const contextPath = process.env.NODE_ENV === 'development' ? '/' : '/jxc-admin/'
|
|
|
|
module.exports = {
|
|
//项目的部署路径,始终以'/'开头,以'/'结束
|
|
contextPath,
|
|
|
|
//页面标题、登录注册页的标题
|
|
title: 'BiuBiuBiu~',
|
|
|
|
//logo地址
|
|
logo: `${contextPath}static/img/logo.svg`,
|
|
|
|
//全局axios的baseUrl、devServer的路由前缀
|
|
apiPrefix: '/api',
|
|
|
|
//是否在开发时使用mock,为true时不会启动websocket和代理
|
|
//为true时需要自行安装body-parser(npm i body-parser -D)
|
|
useMock: false,
|
|
|
|
//socket连接地址
|
|
socketUrl: process.env.NODE_ENV === 'development' ? 'http://localhost:12580' : 'https://toesbieya.cn',
|
|
|
|
//路由配置
|
|
route: {
|
|
//路由模式,['hash','history']
|
|
mode: 'history',
|
|
|
|
//是否使用由后端返回的数据作为路由
|
|
useBackendDataAsRoute: false
|
|
},
|
|
|
|
//文件配置
|
|
file: {
|
|
//上传地址
|
|
uploadUrl: 'https://upload.qiniup.com',
|
|
|
|
//上传后的存储地址前缀
|
|
storePrefix: 'https://static.toesbieya.cn/',
|
|
|
|
//预览地址前缀
|
|
previewPrefix: process.env.NODE_ENV === 'development' ? 'http://localhost:8012' : 'https://preview.toesbieya.cn',
|
|
},
|
|
|
|
//本地存储配置
|
|
storage: {
|
|
//键名前缀
|
|
keyPrefix: 'GCC-',
|
|
|
|
//读写时是否进行压缩的默认值
|
|
zip: process.env.NODE_ENV !== 'development'
|
|
}
|
|
}
|
|
|