/* * @Description : * @Version : 1.0 * @Author : Shiming * @Date : 2022-01-05 20:15:41 * @LastEditors : Shiming * @LastEditTime : 2022-01-18 17:14:30 * @FilePath : \\tms-obc-web\\src\\app\\routes\\account\\account-routing.module.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AccountComponentsCenterComponent } from './components/center/center.component'; import { AccountComponentsEditPayPasswordComponent } from './components/edit-paypassword/edit-paypassword.component' const routes: Routes = [ { path: '', redirectTo: 'center', pathMatch: 'full' }, { path: 'center', component: AccountComponentsCenterComponent, data: { title: '账户中心' } }, { path: 'edit-paypassword', component: AccountComponentsEditPayPasswordComponent, data: { title: '修改支付密码', titleI18n: 'app.my.edit.paypassword', // guard: {ability: ['accountcenter-editpaypassword']} }, }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class AccountRoutingModule {}