serv\web-侧边栏 标签统一

This commit is contained in:
2025-10-27 16:21:00 +08:00
parent e50de4a277
commit 5fa4e1cd42
47 changed files with 1933 additions and 1307 deletions

View File

@@ -199,17 +199,17 @@ export const resourceApi = {
/**
* 搜索资源
* @param keyword 搜索关键词
* @param categoryID 分类ID可选
* @param tagID 分类ID可选
* @param status 状态(可选)
* @returns Promise<ResultDomain<Resource>>
*/
async searchResources(
keyword: string,
categoryID?: string,
tagID?: string,
status?: number
): Promise<ResultDomain<Resource>> {
const params: any = { keyword };
if (categoryID) params.categoryID = categoryID;
if (tagID) params.tagID = tagID;
if (status !== undefined) params.status = status;
const response = await api.get<Resource>('/news/resources/search', params);