diff --git a/src/app/account/register/register.component.html b/src/app/account/register/register.component.html index 16bec4c..806d818 100644 --- a/src/app/account/register/register.component.html +++ b/src/app/account/register/register.component.html @@ -78,7 +78,7 @@ [class.is-invalid]="getValue('email').invalid"/> diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 094b299..5310f75 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -4,6 +4,7 @@ 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 {NoticeComponent} from './forum/notice/notice.component'; // 路由配置 export const routes: Routes = [ @@ -13,8 +14,10 @@ export const routes: Routes = [ {path: 'register', component: RegisterComponent}, // 重置密码 {path: 'reset_pwd', component: ResetpwdComponent}, - // 论坛管理' + // 论坛管理 {path: 'forum', component: ForumComponent}, + // 公告管理 + {path: 'notice', component: NoticeComponent}, // 自动重定向到登陆 {path: '', redirectTo: 'login', pathMatch: 'full'} ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 4ed4df4..dc1acd0 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -20,6 +20,7 @@ import {ForumModule} from './forum/forum/forum.module'; // Http请求模块 import {HttpClient, HttpClientModule} from '@angular/common/http'; import {HtmlPipe} from './html.pipe'; +import {NoticeComponent} from './forum/notice/notice.component'; export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http); @@ -32,7 +33,8 @@ export function HttpLoaderFactory(http: HttpClient) { declarations: [ AppComponent, ErrorComponent, - HtmlPipe + HtmlPipe, + NoticeComponent ], imports: [ BrowserModule, diff --git a/src/app/forum/forum.component.html b/src/app/forum/forum.component.html index 5ddd941..c910588 100644 --- a/src/app/forum/forum.component.html +++ b/src/app/forum/forum.component.html @@ -1,47 +1,66 @@ - - -