fix: 更新依赖导致的错误异常
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
import {RequestObj} from '../../../class/HttpReqAndResp';
|
||||
import {Article} from '../../../class/Article';
|
||||
|
||||
@@ -4,7 +4,8 @@ import {RouterModule} from '@angular/router';
|
||||
import {AdminArticleComponent} from './admin-article.component';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {NzCheckboxModule, NzTagModule} from 'ng-zorro-antd';
|
||||
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
import {RequestObj} from '../../../class/HttpReqAndResp';
|
||||
import {Comment, CommentReq} from '../../../class/Comment';
|
||||
|
||||
@@ -3,7 +3,10 @@ import {CommonModule} from '@angular/common';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {AdminCommentComponent} from './admin-comment.component';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {NzAvatarModule, NzCommentModule, NzModalModule, NzTagModule} from 'ng-zorro-antd';
|
||||
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
|
||||
import { NzCommentModule } from 'ng-zorro-antd/comment';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
import {EditableTagModule} from '../components/editable-tag/editable-tag.module';
|
||||
|
||||
|
||||
|
||||
@@ -2,15 +2,13 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {AdminDashboardComponent} from './admin-dashboard.component';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {
|
||||
NzButtonModule,
|
||||
NzCardModule,
|
||||
NzDividerModule,
|
||||
NzGridModule,
|
||||
NzIconModule,
|
||||
NzSpinModule,
|
||||
NzStatisticModule
|
||||
} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzCardModule } from 'ng-zorro-antd/card';
|
||||
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
||||
import { NzGridModule } from 'ng-zorro-antd/grid';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
||||
import { NzStatisticModule } from 'ng-zorro-antd/statistic';
|
||||
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -2,7 +2,7 @@ import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {RequestObj, Response} from '../../../class/HttpReqAndResp';
|
||||
import {Link} from '../../../class/Link';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {Observable} from 'rxjs';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
|
||||
@@ -3,15 +3,13 @@ import {CommonModule} from '@angular/common';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {AdminLinkComponent} from './admin-link.component';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {
|
||||
NzButtonModule,
|
||||
NzCheckboxModule,
|
||||
NzFormModule,
|
||||
NzInputModule,
|
||||
NzModalModule,
|
||||
NzSelectModule,
|
||||
NzTagModule
|
||||
} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
||||
import { NzFormModule } from 'ng-zorro-antd/form';
|
||||
import { NzInputModule } from 'ng-zorro-antd/input';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
import { NzSelectModule } from 'ng-zorro-antd/select';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {Category, Tag} from '../../../class/Tag';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
import {PageList, RequestObj} from '../../../class/HttpReqAndResp';
|
||||
|
||||
@@ -5,7 +5,10 @@ import {AdminTagComponent} from './admin-tag.component';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {EditableTagModule} from '../components/editable-tag/editable-tag.module';
|
||||
import {NzButtonModule, NzCardModule, NzIconModule, NzTabsModule} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzCardModule } from 'ng-zorro-antd/card';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
||||
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {Observable} from 'rxjs';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
|
||||
@@ -5,7 +5,9 @@ import {AdminUpdateComponent} from './admin-update.component';
|
||||
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {NzButtonModule, NzInputModule, NzModalModule} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzInputModule } from 'ng-zorro-antd/input';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {NzMessageService} from 'ng-zorro-antd';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {FormControl, FormGroup} from '@angular/forms';
|
||||
import {RequestObj} from '../../../class/HttpReqAndResp';
|
||||
|
||||
@@ -4,15 +4,15 @@ import {RouterModule} from '@angular/router';
|
||||
import {AdminUserComponent} from './admin-user.component';
|
||||
import {ReactiveFormsModule} from '@angular/forms';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {
|
||||
NzButtonModule,
|
||||
NzFormModule,
|
||||
NzGridModule,
|
||||
NzIconModule,
|
||||
NzInputModule, NzModalModule,
|
||||
NzRadioModule,
|
||||
NzSelectModule, NzTagModule
|
||||
} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzFormModule } from 'ng-zorro-antd/form';
|
||||
import { NzGridModule } from 'ng-zorro-antd/grid';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { NzInputModule } from 'ng-zorro-antd/input';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
||||
import { NzSelectModule } from 'ng-zorro-antd/select';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {NzMessageService, UploadFile} from 'ng-zorro-antd';
|
||||
import {NzMessageService} from 'ng-zorro-antd/message';
|
||||
import {NzUploadFile} from 'ng-zorro-antd/upload';
|
||||
import {Router} from '@angular/router';
|
||||
import {GlobalUserService} from '../../services/global-user.service';
|
||||
import {User} from '../../class/User';
|
||||
@@ -71,7 +72,7 @@ export class AdminComponent implements OnInit {
|
||||
return control.value !== newPwd ? {pwdNotSame: true} : null;
|
||||
};
|
||||
}
|
||||
uploadHeader = (file: UploadFile): object | Observable<{}> => {
|
||||
uploadHeader = (file: NzUploadFile): object | Observable<{}> => {
|
||||
return {Authorization: this.localStorageService.getToken()}
|
||||
};
|
||||
|
||||
|
||||
@@ -2,12 +2,25 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {AdminRoutingModule} from './admin-routing.module';
|
||||
import {AdminComponent} from './admin.component';
|
||||
import {NgZorroAntdModule} from 'ng-zorro-antd';
|
||||
import {NzSpaceModule} from 'ng-zorro-antd/space';
|
||||
import {AdminHeaderComponent} from '../../components/admin-header/admin-header.component';
|
||||
import {ReactiveFormsModule} from '@angular/forms';
|
||||
import {AuthGuard} from './auth.guard';
|
||||
|
||||
import {NzAvatarModule} from 'ng-zorro-antd/avatar';
|
||||
import {NzButtonModule} from 'ng-zorro-antd/button';
|
||||
import {NzLayoutModule} from 'ng-zorro-antd/layout';
|
||||
import {NzMenuModule} from 'ng-zorro-antd/menu';
|
||||
import {NzIconModule} from 'ng-zorro-antd/icon';
|
||||
import {NzCardModule} from 'ng-zorro-antd/card';
|
||||
import {NzDividerModule} from 'ng-zorro-antd/divider';
|
||||
import {NzUploadModule} from 'ng-zorro-antd/upload';
|
||||
import {NzToolTipModule} from 'ng-zorro-antd/tooltip';
|
||||
import {NzTypographyModule} from 'ng-zorro-antd/typography';
|
||||
import {NzModalModule} from 'ng-zorro-antd/modal';
|
||||
import {NzFormModule} from 'ng-zorro-antd/form';
|
||||
import {NzInputModule} from 'ng-zorro-antd/input';
|
||||
import {NzDescriptionsModule} from 'ng-zorro-antd/descriptions';
|
||||
import {NzDrawerModule} from 'ng-zorro-antd/drawer';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -17,9 +30,23 @@ import {AuthGuard} from './auth.guard';
|
||||
imports: [
|
||||
CommonModule,
|
||||
AdminRoutingModule,
|
||||
NgZorroAntdModule,
|
||||
NzSpaceModule,
|
||||
ReactiveFormsModule,
|
||||
NzAvatarModule,
|
||||
NzButtonModule,
|
||||
NzLayoutModule,
|
||||
NzMenuModule,
|
||||
NzIconModule,
|
||||
NzCardModule,
|
||||
NzDividerModule,
|
||||
NzUploadModule,
|
||||
NzToolTipModule,
|
||||
NzTypographyModule,
|
||||
NzModalModule,
|
||||
NzFormModule,
|
||||
NzInputModule,
|
||||
NzDescriptionsModule,
|
||||
NzDrawerModule
|
||||
],
|
||||
providers: [AuthGuard]
|
||||
})
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {CommonTableComponent} from './common-table.component';
|
||||
import {
|
||||
NzButtonModule,
|
||||
NzCardModule,
|
||||
NzDividerModule,
|
||||
NzIconModule, NzModalModule, NzOutletModule, NzPopconfirmModule, NzSwitchModule,
|
||||
NzTableModule, NzTagModule,
|
||||
NzToolTipModule,
|
||||
NzTypographyModule
|
||||
} from 'ng-zorro-antd';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzCardModule } from 'ng-zorro-antd/card';
|
||||
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
||||
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
|
||||
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
||||
import { NzTableModule } from 'ng-zorro-antd/table';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
|
||||
import { NzTypographyModule } from 'ng-zorro-antd/typography';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {DragDropModule} from '@angular/cdk/drag-drop'
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
SimpleChanges,
|
||||
ViewChild
|
||||
} from '@angular/core';
|
||||
import {NzModalRef, NzModalService} from 'ng-zorro-antd';
|
||||
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
||||
|
||||
@Component({
|
||||
selector: 'editable-tag',
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {EditableTagComponent} from './editable-tag.component';
|
||||
import {NzIconModule, NzInputModule, NzTagModule} from 'ng-zorro-antd';
|
||||
import { NzIconModule } from 'ng-zorro-antd/icon';
|
||||
import { NzInputModule } from 'ng-zorro-antd/input';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@ import {CommonModule} from '@angular/common';
|
||||
import {TestCommonTableComponent} from './test-common-table.component';
|
||||
import {Router, RouterModule} from '@angular/router';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {NzCheckboxModule, NzTagModule} from 'ng-zorro-antd';
|
||||
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
||||
import { NzTagModule } from 'ng-zorro-antd/tag';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {EditableTagModule} from '../components/editable-tag/editable-tag.module';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user