fix: 接口变更/请求方法为大写
This commit is contained in:
@@ -8,7 +8,7 @@ import { request } from '@/plugins/http-fetch';
|
||||
export function listNeSoftware(query: Record<string, any>) {
|
||||
return request({
|
||||
url: '/ne/software/list',
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
params: query,
|
||||
timeout: 60_000,
|
||||
});
|
||||
@@ -22,7 +22,7 @@ export function listNeSoftware(query: Record<string, any>) {
|
||||
export function getNeSoftware(softwareId: string | number) {
|
||||
return request({
|
||||
url: `/ne/software/${softwareId}`,
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ export function getNeSoftware(softwareId: string | number) {
|
||||
export function addNeSoftware(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/ne/software`,
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
repeatSubmit: false,
|
||||
});
|
||||
@@ -48,7 +48,7 @@ export function addNeSoftware(data: Record<string, any>) {
|
||||
export function updateNeSoftware(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/ne/software`,
|
||||
method: 'put',
|
||||
method: 'PUT',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
@@ -61,7 +61,7 @@ export function updateNeSoftware(data: Record<string, any>) {
|
||||
export function delNeSoftware(softwareIds: string | number) {
|
||||
return request({
|
||||
url: `/ne/software/${softwareIds}`,
|
||||
method: 'delete',
|
||||
method: 'DELETE',
|
||||
timeout: 60_000,
|
||||
});
|
||||
}
|
||||
@@ -74,7 +74,7 @@ export function delNeSoftware(softwareIds: string | number) {
|
||||
export function newNeVersion(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/ne/software/newNeVersion`,
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user