fix: 请求发送patch访问要大写匹配
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
// 解析数据
|
// 解析数据
|
||||||
|
|||||||
@@ -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;
|
||||||
/**地址栏参数 */
|
/**地址栏参数 */
|
||||||
|
|||||||
Reference in New Issue
Block a user