- 统一从 utils 目录导入工具函数,而非具体的子文件 - 更新了 uploadFile, buildUrl, formatCurrency 等函数的导入路径 - 修改 CustomTabBar 组件接收 userRoleVO 对象而非 role 字符串 - 调整金额格式化相关工具函数的引用方式 - 更新文档中项目结构和费用管理相关说明 - 优化用户角色权限相关的数据传递逻辑
52 lines
1000 B
TypeScript
52 lines
1000 B
TypeScript
/**
|
|
* 纯函数工具统一导出
|
|
*
|
|
* 使用方式:
|
|
* import { formatAmount, formatDate, aesEncrypt } from '@/utils/functions'
|
|
*/
|
|
|
|
// 金额相关
|
|
export { formatAmount, formatCurrency, validateAmount } from "./amount";
|
|
|
|
// 日期处理
|
|
export * from "./date";
|
|
|
|
// 通用格式化
|
|
export {
|
|
formatDistance,
|
|
formatHumanReadableDate,
|
|
convertSeconds,
|
|
formatUnitPrice,
|
|
validatePrice,
|
|
} from "./format";
|
|
|
|
// ID生成
|
|
export { generateShortId } from "./generateShortId";
|
|
|
|
// 安全相关 - AES加密解密
|
|
export * from "./aes";
|
|
|
|
// 网络相关 - 参数构建、URL构建、文件上传
|
|
export * from "./buildParams";
|
|
export * from "./buildUrl";
|
|
export * from "./uploader";
|
|
|
|
// 数据存储 - 缓存处理
|
|
export * from "./cache";
|
|
|
|
// 用户相关
|
|
export * from "./user";
|
|
|
|
// 设备相关 - 电话、OCR
|
|
export * from "./makePhone";
|
|
export * from "./ocr";
|
|
|
|
// 动画相关
|
|
export * from "./raf";
|
|
|
|
// 报告/日志
|
|
export * from "./reporter";
|
|
|
|
// 路由相关
|
|
export * from "./routeGuard";
|