From 67629263f913af0cd43d060a2edf2314723314b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 27 May 2026 13:53:48 +0800 Subject: [PATCH] fix(TopBar): add missing openExtensionPage import The function was called in handleOpenInTab but never imported from utils/chromeTabs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- components/TopBar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/TopBar.tsx b/components/TopBar.tsx index 94327d1..b69c22f 100644 --- a/components/TopBar.tsx +++ b/components/TopBar.tsx @@ -15,6 +15,7 @@ import { useRouter } from '@/providers/RouterProvider'; import { useThemeMode } from '@/providers/ThemeModeProvider'; import { FeatureConfig, FEATURES } from '@/config/features'; import { storageUtil } from '@/utils/chromeStorage'; +import { openExtensionPage } from '@/utils/chromeTabs'; import { useTranslation } from 'react-i18next'; import { normalizeLanguage, SUPPORTED_LANGUAGES } from '@/i18n'; import { cn } from '@/lib/utils'; // 1. 引入 shadcn 核心工具函数