添加维护页面
This commit is contained in:
5
src/app/view/maintain/maintain.component.html
Normal file
5
src/app/view/maintain/maintain.component.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<nz-result nzStatus="500" nzTitle="暂时无法连接到后台服务器,可能正在维护更新">
|
||||
<div nz-result-extra>
|
||||
<button nz-button nzType="primary" routerLink="/">返回首页</button>
|
||||
</div>
|
||||
</nz-result>
|
||||
0
src/app/view/maintain/maintain.component.less
Normal file
0
src/app/view/maintain/maintain.component.less
Normal file
16
src/app/view/maintain/maintain.component.ts
Normal file
16
src/app/view/maintain/maintain.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-maintain',
|
||||
templateUrl: './maintain.component.html',
|
||||
styleUrls: ['./maintain.component.less']
|
||||
})
|
||||
export class MaintainComponent implements OnInit {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
18
src/app/view/maintain/maintain.module.ts
Normal file
18
src/app/view/maintain/maintain.module.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {MaintainComponent} from './maintain.component';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {NzButtonModule, NzResultModule} from 'ng-zorro-antd';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [MaintainComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule.forChild([{path: '', component: MaintainComponent}]),
|
||||
NzResultModule,
|
||||
NzButtonModule
|
||||
]
|
||||
})
|
||||
export class MaintainModule {
|
||||
}
|
||||
Reference in New Issue
Block a user