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.

45 lines
1.2 KiB

const isDevelopment = process.env.NODE_ENV === 'development'
const contextPath = '/'
6 years ago
module.exports = {
title: 'BiuBiuBiu~',
//项目的部署路径
contextPath,
6 years ago
//全局axios的baseUrl
apiPrefix: '/api',
//路由模式,['hash','history']
routerMode: 'history',
6 years ago
//socket连接地址
socketUrl: isDevelopment ? 'localhost:12580' : 'wss://toesbieya.cn',
6 years ago
sidebarLogoUrl: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png',
errorLog: ['production', 'development'],
//storage的相关键名
sessionUserKey: 'GCC-SESS-USER',
localResourceKey: 'GCC-LOCAL-PERM',
localPersonalSettingsKey: 'GCC-LOCAL-PERSONAL-SETTINGS',
//路由切换时的过渡动画名称,关联transition.css
rightSideRouteTransition: 'left-out',
leftSideRouteTransition: 'right-out',
//七牛云上传地址
6 years ago
attachmentUploadUrl: 'https://upload.qiniup.com',
6 years ago
//附件上传后的存储地址前缀
6 years ago
attachmentPrefix: 'https://static.toesbieya.cn/',
//文件预览接口前缀
filePreviewPrefix: isDevelopment ? 'http://localhost:8012' : 'https://preview.toesbieya.cn',
6 years ago
//省市地区json数据请求地址
regionDataUrl: `${contextPath}static/json/region-pca.json`
6 years ago
}