删除路由复用服务打印信息

This commit is contained in:
zhouyuejun
2018-12-03 13:55:38 +08:00
parent f46835b33b
commit f3ef53ee06
-2
View File
@@ -35,10 +35,8 @@ export class AppReuseStrategy implements RouteReuseStrategy {
}
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {
console.log(route)
const url = this.getFullRouteUrl(route);
const data = this.getRouteData(route);
console.log(this.routeCache.get(url));
return data && data.reuse && this.routeCache.has(url)
? this.routeCache.get(url).handle
: null;