diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 5310f75..83b0420 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -3,8 +3,9 @@ import {RouterModule, Routes} from '@angular/router'; import {LoginComponent} from './account/login/login.component'; import {RegisterComponent} from './account/register/register.component'; import {ResetpwdComponent} from './account/resetpwd/resetpwd.component'; -import {ForumComponent} from './forum/forum.component'; +import {ForumComponent} from './forum/forum/forum.component'; import {NoticeComponent} from './forum/notice/notice.component'; +import {VisitorComponent} from './visitor/visitor/visitor.component'; // 路由配置 export const routes: Routes = [ @@ -18,6 +19,8 @@ export const routes: Routes = [ {path: 'forum', component: ForumComponent}, // 公告管理 {path: 'notice', component: NoticeComponent}, + // 访客管理 + {path: 'visitor', component: VisitorComponent}, // 自动重定向到登陆 {path: '', redirectTo: 'login', pathMatch: 'full'} ]; diff --git a/src/app/app.component.html b/src/app/app.component.html index bdc5699..8e30e90 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -3,7 +3,10 @@ {{ 'APP_TITLE' | translate }} - {{ 'forum.name' | translate }} + + {{ 'forum.name' | translate }} + {{ 'visitor.name' | translate }} +