mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: delete tag (#1062)
This commit is contained in:
@ -202,7 +202,9 @@ export function upsertTag(tagName: string) {
|
||||
}
|
||||
|
||||
export function deleteTag(tagName: string) {
|
||||
return axios.delete<ResponseObject<string>>(`/api/tag/${encodeURIComponent(tagName)}`);
|
||||
return axios.post<ResponseObject<boolean>>(`/api/tag/delete`, {
|
||||
name: tagName,
|
||||
});
|
||||
}
|
||||
|
||||
export async function getRepoStarCount() {
|
||||
|
Reference in New Issue
Block a user