Fix unstable dashboard modal opening

This commit is contained in:
2569718930@qq.com
2026-03-21 00:58:43 +08:00
parent 8959faac91
commit a19925fe7a
2 changed files with 19 additions and 23 deletions
@@ -56,6 +56,12 @@ function DashboardScreen() {
const store = useDashboardStore();
const { t } = useI18n();
useEffect(() => {
void import("@/components/dashboard/GuideModal");
void import("@/components/dashboard/HistoryModal");
void import("@/components/dashboard/FutureForecastModal");
}, []);
useEffect(() => {
const onKeyDown = (event: KeyboardEvent) => {
if (event.key !== "Escape") return;