File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * @Author : wangchunji
3+ * @Date : 2026-03-19 09:57:44
4+ * @LastEditors : wangchunji
5+ * @LastEditTime : 2026-03-25 10:54:50
6+ * @Description :
7+ */
18import { Suspense , useEffect , useSyncExternalStore } from 'react' ;
29
310import { getCurrentAppPath , navigate , subscribeNavigation } from '@shared/navigation' ;
Original file line number Diff line number Diff line change @@ -78,10 +78,11 @@ export const appRoutes: AppRoute[] = [
7878
7979export function resolveAppRoute ( pathname : string ) : AppRoute {
8080 const normalizedPath = normalizeAppPath ( pathname ) ;
81+ const tasksRoute = appRoutes . find ( ( route ) => route . id === 'tasks' ) || appRoutes [ 0 ] ;
8182 const direct = appRoutes . find ( ( route ) => route . path === normalizedPath ) ;
8283 if ( direct ) return direct ;
8384 if ( normalizedPath . startsWith ( '/tasks/' ) ) {
84- return appRoutes . find ( ( route ) => route . id === 'tasks' ) || appRoutes [ 0 ] ;
85+ return tasksRoute ;
8586 }
86- return appRoutes [ 0 ] ;
87+ return tasksRoute ;
8788}
You can’t perform that action at this time.
0 commit comments