fix: 接口变更/请求方法为大写
This commit is contained in:
@@ -7,7 +7,7 @@ import { request } from '@/plugins/http-fetch';
|
||||
export function packetDevices() {
|
||||
return request({
|
||||
url: '/trace/packet/devices',
|
||||
method: 'get',
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export function packetDevices() {
|
||||
export function packetStart(data: Record<string, any>) {
|
||||
return request({
|
||||
url: '/trace/packet/start',
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
@@ -32,7 +32,7 @@ export function packetStart(data: Record<string, any>) {
|
||||
export function packetStop(taskNo: string) {
|
||||
return request({
|
||||
url: '/trace/packet/stop',
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
data: { taskNo },
|
||||
});
|
||||
}
|
||||
@@ -45,7 +45,7 @@ export function packetStop(taskNo: string) {
|
||||
export function packetFilter(taskNo: string, expr: string) {
|
||||
return request({
|
||||
url: '/trace/packet/filter',
|
||||
method: 'put',
|
||||
method: 'PUT',
|
||||
data: { taskNo, expr },
|
||||
});
|
||||
}
|
||||
@@ -58,7 +58,7 @@ export function packetFilter(taskNo: string, expr: string) {
|
||||
export function packetKeep(taskNo: string, duration: number = 120) {
|
||||
return request({
|
||||
url: '/trace/packet/keep-alive',
|
||||
method: 'put',
|
||||
method: 'PUT',
|
||||
data: { taskNo, duration },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user