feat(approval): 员工端审批中心入口与业务完成确认单页面 (#19)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user