fix: fix cannot add http monitor problem
This commit is contained in:
parent
7df1691890
commit
6e68cd1985
@ -13,6 +13,7 @@ import {
|
|||||||
import { routeAuthBeforeLoad } from '@/utils/route';
|
import { routeAuthBeforeLoad } from '@/utils/route';
|
||||||
import { useMonitorUpsert } from '@/api/model/monitor';
|
import { useMonitorUpsert } from '@/api/model/monitor';
|
||||||
import { CommonHeader } from '@/components/CommonHeader';
|
import { CommonHeader } from '@/components/CommonHeader';
|
||||||
|
import { ScrollArea } from '@/components/ui/scroll-area';
|
||||||
|
|
||||||
export const Route = createFileRoute('/monitor/add')({
|
export const Route = createFileRoute('/monitor/add')({
|
||||||
beforeLoad: routeAuthBeforeLoad,
|
beforeLoad: routeAuthBeforeLoad,
|
||||||
@ -41,13 +42,13 @@ function MonitorAddComponent() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CommonWrapper header={<CommonHeader title={t('Add Monitor')} />}>
|
<CommonWrapper header={<CommonHeader title={t('Add Monitor')} />}>
|
||||||
<div className="p-4">
|
<ScrollArea className="h-full overflow-hidden p-4">
|
||||||
<Card>
|
<Card>
|
||||||
<CardContent className="pt-4">
|
<CardContent className="pt-4">
|
||||||
<MonitorInfoEditor onSave={handleSubmit} />
|
<MonitorInfoEditor onSave={handleSubmit} />
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</ScrollArea>
|
||||||
</CommonWrapper>
|
</CommonWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user