/***
 * 路由文件
 */ import { Routes } from '@angular/router' ; import { DashboardComponent } from './page/dashboard/dashboard.component' ; import { ErrorComponent } from './page/error/error.component' ; import { UserComponent } from './page/user/user.component' ; import { UserEditComponent } from './page/user/children/user-edit/user-edit.component' ; import { RoleComponent } from './page/role/role.component' ; import { PermissionComponent } from './page/permission/permission.component' ; import { ConfigureComponent } from './page/configure/configure.component' ; import { SettingComponent } from './page/setting/setting.component' ; import { UpgradeComponent } from './page/upgrade/upgrade.component' ; import { BackupComponent } from './page/backup/backup.component' ; import { LicenseComponent } from './page/license/license.component' ; import { LogComponent } from './page/log/log.component' ; import { AuditComponent } from './page/audit/audit.component' ; import { RemoteComponent } from './page/remote/remote.component' ; import { SystemComponent } from './page/system/system.component' ; export const routes = [ { path : '' , component : DashboardComponent } , { path : 'dashboard' , component : DashboardComponent } , { path : 'error' , component : ErrorComponent } , { path : 'user' , component : UserComponent } , { path : 'user.edit/:id' , component : UserEditComponent } , { path : 'role' , component : RoleComponent } , { path : 'permission' , component : PermissionComponent } , { path : 'setting' , component : SettingComponent } , { path : 'upgrade' , component : UpgradeComponent } , { path : 'backup' , component : BackupComponent } , { path : 'license' , component : LicenseComponent } , { path : 'log' , component : LogComponent } , { path : 'remote' , component : RemoteComponent } , { path : 'audit' , component : AuditComponent } , { path : 'system' , component : SystemComponent } , { path : 'configure' , component : ConfigureComponent } , { path : '**' , component : DashboardComponent } ] ;