fix: delete tag api (#950)

* fix: delete tag api

* chore: update
This commit is contained in:
boojack
2023-01-14 12:08:31 +08:00
committed by GitHub
parent 677750ef51
commit fae0b64a08
7 changed files with 20 additions and 17 deletions

View File

@ -198,7 +198,7 @@ export function upsertTag(tagName: string) {
}
export function deleteTag(tagName: string) {
return axios.delete<ResponseObject<string>>(`/api/tag/${tagName}`);
return axios.delete<ResponseObject<string>>(`/api/tag/${encodeURI(tagName)}`);
}
export async function getRepoStarCount() {