Layout
In some pages, we need to share some UI, here we agree to uselayout.tsx to implement it.
layout.tsxis used to define the layout
-
/dashboardpage will be rendered asDashboardLayoutcomponent -
/dashboard/settingspage will be rendered asDashboardLayoutcomponent, andOutletwill be replaced withSettingsPagecomponent