feat(chat-export): open single export dialog in chat with init feedback

This commit is contained in:
tisonhuang
2026-03-02 16:33:09 +08:00
parent 815a440082
commit 2e8f55d7a8
5 changed files with 353 additions and 28 deletions

View File

@@ -63,7 +63,6 @@ function App() {
const isNotificationWindow = location.pathname === '/notification-window'
const isExportRoute = location.pathname === '/export'
const [themeHydrated, setThemeHydrated] = useState(false)
const [hasVisitedExport, setHasVisitedExport] = useState(isExportRoute)
// 锁定状态
// const [isLocked, setIsLocked] = useState(false) // Moved to store
@@ -101,12 +100,6 @@ function App() {
}
}, [isOnboardingWindow])
useEffect(() => {
if (isExportRoute) {
setHasVisitedExport(true)
}
}, [isExportRoute])
// 应用主题
useEffect(() => {
const mq = window.matchMedia('(prefers-color-scheme: dark)')
@@ -462,11 +455,9 @@ function App() {
<Sidebar />
<main className="content">
<RouteGuard>
{hasVisitedExport && (
<div className={`export-keepalive-page ${isExportRoute ? 'active' : 'hidden'}`} aria-hidden={!isExportRoute}>
<ExportPage />
</div>
)}
<div className={`export-keepalive-page ${isExportRoute ? 'active' : 'hidden'}`} aria-hidden={!isExportRoute}>
<ExportPage />
</div>
<Routes>
<Route path="/" element={<HomePage />} />