mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
feat(chat-export): open single export dialog in chat with init feedback
This commit is contained in:
15
src/App.tsx
15
src/App.tsx
@@ -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 />} />
|
||||
|
||||
Reference in New Issue
Block a user