路由复用优化

This commit is contained in:
zhouyuejun
2018-12-19 13:40:46 +08:00
parent 1e735059f8
commit cdb09eefa2
15 changed files with 155 additions and 116 deletions
+2 -2
View File
@@ -21,12 +21,12 @@ const pagesRoutes: Routes = [
{
path:'season',
loadChildren:'./seasonal-plan/seasonal-plan.module#SeasonalPlanModule',
data: { preload: true, reuse: false }
data: { preload: true, reuse: true }
},
{
path:'history',
loadChildren:'./historical-data/historical-data.module#HistoricalDataModule',
data: { preload: true, reuse: false }
data: { preload: true, reuse: true }
},
{
path:'basic',