三元表达式
This commit is contained in:
@@ -289,9 +289,9 @@
|
|||||||
},
|
},
|
||||||
init(row, catalogue_id, courseid) {
|
init(row, catalogue_id, courseid) {
|
||||||
console.log('row2', row)
|
console.log('row2', row)
|
||||||
this.dataForm = JSON.parse(JSON.stringify(row)) || {}
|
this.dataForm =row? JSON.parse(JSON.stringify(row)): {}
|
||||||
this.dataForm.courseId = courseid || ''
|
this.dataForm.courseId = courseid?courseid : ''
|
||||||
this.dataForm.catalogueId = catalogue_id || ''
|
this.dataForm.catalogueId = catalogue_id?catalogue_id : ''
|
||||||
this.visible = true
|
this.visible = true
|
||||||
if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") {
|
if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") {
|
||||||
var img = {
|
var img = {
|
||||||
|
|||||||
Reference in New Issue
Block a user