feat(approval): 员工端审批中心入口与业务完成确认单页面 (#19)

This commit is contained in:
2026-10-30 20:20:34 +08:00
parent ae8bcb1e57
commit 370091ed6e
9 changed files with 1794 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
import request from '@/utils/request';
import type { ApiResult } from '@/api';
import { THINK_API_URL } from '@/config/setting';
/**
* 待办数量(个人中心红点)
*/
export async function getTodoCount() {
const res = await request.get<ApiResult<number>>(
THINK_API_URL + '/approval/todo/count'
);
if (res.data.code === 0 && res.data.data !== undefined) {
return res.data.data;
}
return Promise.reject(new Error(res.data.message));
}