fix: fix cannot add http monitor problem

This commit is contained in:
moonrailgun 2024-04-10 11:57:09 +08:00
parent 7df1691890
commit 6e68cd1985

View File

@ -13,6 +13,7 @@ import {
import { routeAuthBeforeLoad } from '@/utils/route';
import { useMonitorUpsert } from '@/api/model/monitor';
import { CommonHeader } from '@/components/CommonHeader';
import { ScrollArea } from '@/components/ui/scroll-area';
export const Route = createFileRoute('/monitor/add')({
beforeLoad: routeAuthBeforeLoad,
@ -41,13 +42,13 @@ function MonitorAddComponent() {
return (
<CommonWrapper header={<CommonHeader title={t('Add Monitor')} />}>
<div className="p-4">
<ScrollArea className="h-full overflow-hidden p-4">
<Card>
<CardContent className="pt-4">
<MonitorInfoEditor onSave={handleSubmit} />
</CardContent>
</Card>
</div>
</ScrollArea>
</CommonWrapper>
);
}