[web-app,monitor] 提供后台接口保护,打通前端认证登陆

This commit is contained in:
tomsun28
2021-12-03 09:15:53 +08:00
parent a8ed6ef3a9
commit e7e2e87e11
10 changed files with 211 additions and 27 deletions

View File

@@ -19,7 +19,8 @@ const routes: Routes = [
{
path: '',
component: LayoutBasicComponent,
canActivate: [SimpleGuard],
// 路由守卫 在路由之前判断是否有认证或者权限进入此路由
// canActivate: [SimpleGuard],
children: [
// todo 根据路由自动生成面包屑
{ path: '', redirectTo: 'dashboard', pathMatch: 'full'},