File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
host/src/entry-one/routes/nested-routes Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ import { Link } from '@modern-js/runtime/router' ;
2+
13const Index = ( ) => (
24 < div className = "container-box" >
5+ < a href = 'http://localhost:3062/entry-one/nested-routes/pathname' > click to jump remote page</ a >
36 < h1 > nested-routes page</ h1 >
47 </ div >
58) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const loader = async (): Promise<ProfileData> => {
55 const msg = await new Promise < string > ( ( resolve ) => {
66 setTimeout ( ( ) => {
77 resolve ( 'page/a' ) ;
8- } , 1000 ) ;
8+ } , 0 ) ;
99 } ) ;
1010 console . log ( 'msg' , msg ) ;
1111 return {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const loader = async (): Promise<ProfileData> => {
55 const msg = await new Promise < string > ( ( resolve ) => {
66 setTimeout ( ( ) => {
77 resolve ( 'hello world333' ) ;
8- } , 1000 ) ;
8+ } , 0 ) ;
99 } ) ;
1010 return {
1111 message : msg ,
You can’t perform that action at this time.
0 commit comments