diff --git a/src/views/modules/course/chapter-add-or-update.vue b/src/views/modules/course/chapter-add-or-update.vue index d3b62bb..319d9a3 100644 --- a/src/views/modules/course/chapter-add-or-update.vue +++ b/src/views/modules/course/chapter-add-or-update.vue @@ -289,9 +289,9 @@ }, init(row, catalogue_id, courseid) { console.log('row2', row) - this.dataForm = JSON.parse(JSON.stringify(row)) || {} - this.dataForm.courseId = courseid || '' - this.dataForm.catalogueId = catalogue_id || '' + this.dataForm =row? JSON.parse(JSON.stringify(row)): {} + this.dataForm.courseId = courseid?courseid : '' + this.dataForm.catalogueId = catalogue_id?catalogue_id : '' this.visible = true if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") { var img = {