diff --git a/src/client/components/monitor/StatusPage/index.tsx b/src/client/components/monitor/StatusPage/index.tsx index 3f86ca6..e0babb4 100644 --- a/src/client/components/monitor/StatusPage/index.tsx +++ b/src/client/components/monitor/StatusPage/index.tsx @@ -28,7 +28,9 @@ export const MonitorStatusPage: React.FC = React.memo( const navigate = useNavigate(); const allowEdit = useAllowEdit(info?.workspaceId); - const [editMode, setEditMode] = useState(false); + const [editMode, setEditMode] = useState(() => { + return new URLSearchParams(window.location.search).has('edit'); + }); const monitorList = info?.monitorList ?? []; diff --git a/src/client/pages/Monitor/PageList.tsx b/src/client/pages/Monitor/PageList.tsx index 15f61a9..2f820bd 100644 --- a/src/client/pages/Monitor/PageList.tsx +++ b/src/client/pages/Monitor/PageList.tsx @@ -28,7 +28,10 @@ export const MonitorPageList: React.FC = React.memo(() => { icon={} onClick={() => navigate(`/status/${p.slug}`)} /> -