|
|
|
@ -71,23 +71,29 @@ const router = { |
|
|
|
component: 'example/developingTest/', |
|
|
|
component: 'example/developingTest/', |
|
|
|
meta: {title: '开发测试'} |
|
|
|
meta: {title: '开发测试'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path:'cacheTest', |
|
|
|
|
|
|
|
meta: {title: '详情页缓存测试', noCache: false}, |
|
|
|
|
|
|
|
children:[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'detailPage1', |
|
|
|
path: 'detailPage1', |
|
|
|
component: 'example/detail', |
|
|
|
component: 'example/cacheTest/detail', |
|
|
|
meta: { |
|
|
|
meta: { |
|
|
|
title: '详情页缓存1', |
|
|
|
title: '详情页1', |
|
|
|
usePathKey: true, |
|
|
|
usePathKey: true, |
|
|
|
commonModule: '@/view/example/detailPage' |
|
|
|
commonModule: '@/view/example/cacheTest/detailPage' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'detailPage2', |
|
|
|
path: 'detailPage2', |
|
|
|
component: 'example/detail', |
|
|
|
component: 'example/cacheTest/detail', |
|
|
|
meta: { |
|
|
|
meta: { |
|
|
|
title: '详情页缓存2', |
|
|
|
title: '详情页2', |
|
|
|
usePathKey: true, |
|
|
|
usePathKey: true, |
|
|
|
commonModule: '@/view/example/detailPage' |
|
|
|
commonModule: '@/view/example/cacheTest/detailPage' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|