diff --git a/src/app/examiner/examiner-index/examiner-index.component.ts b/src/app/examiner/examiner-index/examiner-index.component.ts index eac6ede..0e35689 100644 --- a/src/app/examiner/examiner-index/examiner-index.component.ts +++ b/src/app/examiner/examiner-index/examiner-index.component.ts @@ -483,7 +483,7 @@ export class editorsDia{ this.snackBar.open('修改名称时间成功','确定',config); setTimeout(() => { this.http.get(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { - if(data.paperDataInfo.length==0){ + if (data.paperDataInfo == null || data.paperDataInfo.length == 0) { this.http.delete(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { }) this.http.post('/api/Papers',params).subscribe(data => {