style: eslint of naming-convention

This commit is contained in:
禾几海
2021-03-12 17:30:05 +08:00
parent 7ea7f83227
commit 6bfb42e43d
7 changed files with 86 additions and 83 deletions

View File

@@ -71,6 +71,7 @@ export class AdminComponent implements OnInit {
const newPwd = this.resetPwdFormGroup && this.resetPwdFormGroup.value.newPwd;
return control.value !== newPwd ? {pwdNotSame: true} : null;
};
// eslint-disable-next-line @typescript-eslint/naming-convention
uploadHeader = (file: NzUploadFile): any | Observable<{}> => ({Authorization: this.localStorageService.getToken()});
showEditInfoModal() {

View File

@@ -243,6 +243,7 @@ export class WriteComponent implements OnInit, OnDestroy {
.forEach(value => result.data.errFiles.push(value.originalFilename));
return JSON.stringify(result);
},
// eslint-disable-next-line @typescript-eslint/naming-convention
setHeaders: () => ({Authorization: this.localStorageService.getToken()})
},
after: () => {