From 2a5444ef990dae19fcf45bcb1b30d735fd6a1602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Fri, 12 Apr 2024 16:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E5=85=83=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/views/modules/course/chapter-add-or-update.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = {