refactor: ♻️ 不在支持两种请求类型

不在支持两种请求类型
This commit is contained in:
Theo
2024-11-24 01:32:14 +08:00
parent 1ea9e43994
commit 0f4f996b04
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ const ConfigAPI = {
refreshCache() {
return request({
url: `${CONFIG_BASE_URL}/refresh`,
method: "PATCH",
method: "PUT",
});
},
};

View File

@@ -74,7 +74,7 @@ const NoticeAPI = {
publish(id: number) {
return request({
url: `${NOTICE_BASE_URL}/${id}/publish`,
method: "patch",
method: "put",
});
},
@@ -87,7 +87,7 @@ const NoticeAPI = {
revoke(id: number) {
return request({
url: `${NOTICE_BASE_URL}/${id}/revoke`,
method: "patch",
method: "put",
});
},
/**