/** * Snapshot 前端配置模板 * * 使用说明: * 1. 复制此文件到 src/config.js * 2. 修改后端API地址和其他配置 * 3. 不要将包含真实配置的文件提交到Git */ export default { // 后端API地址 // 开发环境:http://localhost:7626 // 生产环境:修改为你的实际部署地址,如 https://snapshot.example.com baseURL: 'http://localhost:7626', // 文件上传限制(字节) uploadLimit: 500 * 1024 * 1024, // 500MB // 最大文件数量 maxFiles: 10, // 过期时间选项(小时) expirationOptions: [1, 2, 3, 6, 12, 24], // 请求超时时间(毫秒) timeout: 30000, // 30秒 // 上传分片大小(字节)- 用于大文件分片上传 chunkSize: 5 * 1024 * 1024, // 5MB // 是否启用上传进度显示 showUploadProgress: true, // 是否启用文件预检(前端验证) enableFilePrecheck: true, // 密码最小长度 minPasswordLength: 4, // 密码最大长度 maxPasswordLength: 32, // Toast通知持续时间(毫秒) toastDuration: 3000, // 是否开启调试模式 debug: process.env.NODE_ENV === 'development' }