From e9b783f0478f67bee0ca81a0115d1680e38c6e3c Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 7 Feb 2024 01:21:11 +0800 Subject: [PATCH] refactor: http url allow link --- src/client/components/monitor/provider/http.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/components/monitor/provider/http.tsx b/src/client/components/monitor/provider/http.tsx index bdf5810..ab2cf93 100644 --- a/src/client/components/monitor/provider/http.tsx +++ b/src/client/components/monitor/provider/http.tsx @@ -1,4 +1,4 @@ -import { Form, Input, Select, Switch } from 'antd'; +import { Form, Input, Select, Switch, Typography } from 'antd'; import React from 'react'; import { MonitorOverviewComponent, MonitorProvider } from './types'; import { trpc } from '../../../api/trpc'; @@ -165,7 +165,11 @@ MonitorHttpOverview.displayName = 'MonitorHttpOverview'; export const httpProvider: MonitorProvider = { label: 'HTTP', name: 'http', - link: (info) => String(info.payload.url), + link: (info) => ( + + {String(info.payload.url)} + + ), form: MonitorHttp, overview: [MonitorHttpOverview], };