优化修复网站导航的bug
This commit is contained in:
@@ -141,3 +141,13 @@ export async function checkExistence(
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function getCount(params: ArticleParam) {
|
||||
const res = await request.get(MODULES_API_URL + '/cms/article/data', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export interface ArticleParam extends PageParam {
|
||||
articleId?: number;
|
||||
categoryId?: number;
|
||||
navigationId?: number;
|
||||
status?: string;
|
||||
status?: number;
|
||||
sortNumber?: string;
|
||||
createTime?: string;
|
||||
username?: string;
|
||||
|
||||
Reference in New Issue
Block a user