diff --git a/src/client/components/monitor/provider/http.tsx b/src/client/components/monitor/provider/http.tsx index 1455ccb..bdf5810 100644 --- a/src/client/components/monitor/provider/http.tsx +++ b/src/client/components/monitor/provider/http.tsx @@ -75,6 +75,10 @@ const MonitorHttp: React.FC = React.memo(() => { rules={[ { validator(rule, value, callback) { + if (!value) { + callback(); + } + try { const obj = JSON.parse(value); if (typeof obj !== 'object') { @@ -94,7 +98,30 @@ const MonitorHttp: React.FC = React.memo(() => { placeholder='For example: { "key": "value" }' /> - +