diff --git a/src/app/(root)/_navigation/index.tsx b/src/app/(root)/_navigation/index.tsx index 7c564be..ce3d072 100644 --- a/src/app/(root)/_navigation/index.tsx +++ b/src/app/(root)/_navigation/index.tsx @@ -1,7 +1,6 @@ "use client" import { Activity, - BarChart3, ChevronsLeft, ChevronsRight, CircleDollarSign, diff --git a/src/app/(root)/gateway/page.tsx b/src/app/(root)/gateway/page.tsx index 66de8d6..c35b2e3 100644 --- a/src/app/(root)/gateway/page.tsx +++ b/src/app/(root)/gateway/page.tsx @@ -14,6 +14,12 @@ import { Auth } from "@/components/auth" import { DataTable, useDataTable } from "@/components/data-table" import { Page } from "@/components/page" import { Button } from "@/components/ui/button" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu" import { ScopeChannelWriteClearExpired, ScopeProxyWrite } from "@/lib/scopes" import type { Gateway } from "@/models/gateway" import CreatePage from "./create" @@ -168,34 +174,52 @@ export default function GatewayPage() { id: "action", meta: { pin: "right" }, header: "操作", - cell: ({ row }) => ( -
- - - - - - - - -
- ), + + + + + + + clearExpired(row.original)} + > + 清理过期连接 + + + + createPort(row.original)} + > + 重建端口池 + + createChains(row.original)} + > + 重建代理链 + + + + + + ) + }, }, ]} /> diff --git a/src/app/(root)/trade/page.tsx b/src/app/(root)/trade/page.tsx index f541900..1ba9302 100644 --- a/src/app/(root)/trade/page.tsx +++ b/src/app/(root)/trade/page.tsx @@ -439,6 +439,7 @@ function CheckOrder(props: { trade: Trade; onSuccess: () => void }) { trade_no: props.trade.inner_no, method: Number(props.trade.method), }) + console.log(res, "res") if (res.success) { setData(res.data) @@ -555,7 +556,7 @@ function CheckOrder(props: { trade: Trade; onSuccess: () => void }) { )} {props && props.trade.status === 0 && ( - <> +
@@ -565,7 +566,7 @@ function CheckOrder(props: { trade: Trade; onSuccess: () => void }) { - +
)}