diff --git a/vite-frontend/src/api/index.ts b/vite-frontend/src/api/index.ts index acdc7aa..c97ddc4 100644 --- a/vite-frontend/src/api/index.ts +++ b/vite-frontend/src/api/index.ts @@ -217,6 +217,8 @@ export const pauseForwardService = (forwardId: number) => Network.post("/forward/pause", { id: forwardId }); export const resumeForwardService = (forwardId: number) => Network.post("/forward/resume", { id: forwardId }); +export const resetForwardFlow = (forwardId: number) => + Network.post("/forward/reset-flow", { id: forwardId }); // 转发诊断操作 export const diagnoseForward = (forwardId: number) => diff --git a/vite-frontend/src/pages/forward.tsx b/vite-frontend/src/pages/forward.tsx index 10d2a6c..f7fc3ba 100644 --- a/vite-frontend/src/pages/forward.tsx +++ b/vite-frontend/src/pages/forward.tsx @@ -69,6 +69,7 @@ import { getNodeList, pauseForwardService, resumeForwardService, + resetForwardFlow, diagnoseForward, updateForwardOrder, getConfigByName, @@ -230,7 +231,7 @@ const FORWARD_GROUPED_TABLE_COLUMN_CLASS = { strategy: "w-[100px]", totalFlow: "w-[120px]", status: "w-[100px]", - actions: "w-[144px] text-right", + actions: "w-[176px] text-right", } as const; const normalizeForwardUserName = (userName?: string): string => { @@ -764,6 +765,7 @@ const SortableTableRow = ({ handleEdit, handleDelete, handleDiagnose, + handleResetFlow, showAddressModal, formatFlow, }: any) => { @@ -919,6 +921,29 @@ const SortableTableRow = ({ /> + + + + + + + )} + + + {/* 地址列表弹窗 */}