fix: 请求发送patch访问要大写匹配

This commit is contained in:
TsMask
2023-10-19 21:19:10 +08:00
parent 917777c25a
commit a7fa5c8127
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ export async function runNeSoftware(data: Record<string, any>) {
export async function backNeSoftware(data: Record<string, any>) { export async function backNeSoftware(data: Record<string, any>) {
const result = await request({ const result = await request({
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`, url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
method: 'patch', method: 'PATCH',
timeout: 60 * 1000, timeout: 60 * 1000,
}); });
// 解析数据 // 解析数据

View File

@@ -53,7 +53,7 @@ type OptionsType = {
/**请求地址 */ /**请求地址 */
url: string; url: string;
/**请求方法 */ /**请求方法 */
method: 'get' | 'post' | 'put' | 'delete' | 'patch'; method: 'get' | 'post' | 'put' | 'delete' | 'PATCH';
/**请求头 */ /**请求头 */
headers?: HeadersInit; headers?: HeadersInit;
/**地址栏参数 */ /**地址栏参数 */