feat: 修复百科添加页面的问题
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user