feat: 修复百科添加页面的问题

This commit is contained in:
Blizzard
2026-02-14 14:32:16 +08:00
parent 5156255c77
commit 7d52705e05
6 changed files with 194 additions and 42 deletions
+11
View File
@@ -159,7 +159,18 @@ export function addWiki(data: CreateWikiParams) {
return post<{ msg: string }>('/wiki/add', data)
}
// 修改百科
export function updateWiki(data: UpdateWikiParams) {
return post<{ msg: string }>('/wiki/update', data)
}
// 上传百科图片 (列表页快捷上传)
export function uploadWikiImg(data: { id: string; ossIds: string[] }) {
return post<{ msg: string }>('/wiki/uploadImg', data)
}
// 删除百科
export function deleteWiki(ids: string[]) {
return post<{ msg: string }>('/wiki/delete', { ids })
}