From dadd0770f25ef78616b933942e2c7fc6bda59fcc Mon Sep 17 00:00:00 2001 From: ZhaiRongJi Date: Wed, 24 Feb 2021 16:08:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AF=95=E5=8D=B7=E6=95=B0=E6=8D=AE=E9=9D=9E=E7=A9=BA=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=A1=A8=E8=BE=BE=E5=BC=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/examiner/examiner-index/examiner-index.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {