refactor: ♻️ 不在支持两种请求类型
不在支持两种请求类型
This commit is contained in:
@@ -62,7 +62,7 @@ const ConfigAPI = {
|
||||
refreshCache() {
|
||||
return request({
|
||||
url: `${CONFIG_BASE_URL}/refresh`,
|
||||
method: "PATCH",
|
||||
method: "PUT",
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user