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.

51 lines
1.2 KiB

const isDev = process.env.NODE_ENV === 'development'
6 years ago
module.exports = {
isDev,
//项目的部署路径,始终以'/'开头,以'/'结束
contextPath: '/',
//页面标题、登录注册页的标题
title: 'BiuBiuBiu~',
//全局axios的baseUrl、devServer的路由前缀
6 years ago
apiPrefix: '/api',
//是否在开发时使用mock,为true时不会启动websocket和代理
useMock: false,
6 years ago
//socket连接地址
socketUrl: isDev ? 'http://localhost:12580' : 'https://toesbieya.cn',
6 years ago
//路由配置
route: {
//路由模式,['hash','history']
mode: 'history',
//是否使用由后端返回的数据作为路由
useBackendDataAsRoute: false
},
//文件配置
file: {
//上传地址
uploadUrl: 'https://upload.qiniup.com',
//上传后的存储地址前缀
storePrefix: 'https://static.toesbieya.cn/',
//预览地址前缀
previewPrefix: isDev ? 'http://localhost:8012' : 'https://preview.toesbieya.cn',
},
//本地存储配置
storage: {
//键名前缀
keyPrefix: 'GCC-',
//读写时是否进行压缩的默认值
zip: !isDev
}
6 years ago
}