三元表达式

This commit is contained in:
2024-04-12 16:34:44 +08:00
parent b88aaf1736
commit 2a5444ef99

View File

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