You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
pocketcommunityweb/src/app/RouteInterface.ts

18 lines
465 B

import {RouterEvent} from '@angular/router';
import {Injectable} from '@angular/core';
/**
* 导航开始时触发事件验证用户
*/
export interface RouteInterface {
doNavigationStart(evt: RouterEvent, isLogin: boolean, managerName: string);
}
@Injectable({
providedIn: 'root'
})
export class RouteInterfaceImpl implements RouteInterface {
doNavigationStart(evt: RouterEvent, isLogin: boolean, managerName: string) {
console.debug(evt.url);
}
}