删除路由复用服务打印信息
This commit is contained in:
@@ -35,10 +35,8 @@ export class AppReuseStrategy implements RouteReuseStrategy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {
|
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {
|
||||||
console.log(route)
|
|
||||||
const url = this.getFullRouteUrl(route);
|
const url = this.getFullRouteUrl(route);
|
||||||
const data = this.getRouteData(route);
|
const data = this.getRouteData(route);
|
||||||
console.log(this.routeCache.get(url));
|
|
||||||
return data && data.reuse && this.routeCache.has(url)
|
return data && data.reuse && this.routeCache.has(url)
|
||||||
? this.routeCache.get(url).handle
|
? this.routeCache.get(url).handle
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
Reference in New Issue
Block a user