mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: dashboard
This commit is contained in:
5
src/layout/index.tsx
vendored
5
src/layout/index.tsx
vendored
@@ -21,7 +21,10 @@ export default function ChatLayout() {
|
||||
|
||||
useEffect(() => {
|
||||
if (location.search === '?type=control') {
|
||||
go('/awesome');
|
||||
go('/settings');
|
||||
}
|
||||
if (location.search === '?type=preview') {
|
||||
go('/?type=preview');
|
||||
}
|
||||
setMenuKey(location.pathname);
|
||||
setDashboard(location.pathname === '/');
|
||||
|
||||
Reference in New Issue
Block a user