fix: 接口变更/请求方法为大写

This commit is contained in:
TsMask
2025-02-20 10:42:34 +08:00
parent 8bfa73a67a
commit 7322759545
83 changed files with 568 additions and 1388 deletions

View File

@@ -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 },
});
}