优化修复网站导航的bug

This commit is contained in:
2024-08-28 23:55:01 +08:00
parent 31ec8e057a
commit 2655874948
34 changed files with 1764 additions and 849 deletions
+10
View File
@@ -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));
}
+1 -1
View File
@@ -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;