Browse Source

[修改] 修改试卷数据非空判断表达式.

master
翟荣基 4 years ago
parent
commit
dadd0770f2
  1. 2
      src/app/examiner/examiner-index/examiner-index.component.ts

2
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 => {

Loading…
Cancel
Save