consts.ts
463 Bytes
import type { ApproveTab } from '@/api';
export const tabDefs: { key: ApproveTab; label: string }[] = [
{ key: 'todo', label: '待我审批' },
{ key: 'done', label: '我已办' },
{ key: 'mine', label: '我发起的' },
];
export const rejectReasons = ['数据有误', '政策不合理', '缺少附件', '其他'];
export function errorMessage(error: unknown): string {
return error instanceof Error ? error.message : '操作失败,请稍后重试';
}