|
@@ -237,7 +237,7 @@ export default {
|
|
|
moduleList(this.$route.query.moduleTypeId).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
res.data.elementIds.map(i => {
|
|
|
- this.module[moduleOptions[i]] = ''
|
|
|
+ this.module[moduleOptions[i]] = i === 'childList' ? [] : ''
|
|
|
})
|
|
|
if (this.$route.query.threeId) {
|
|
|
this.getDetail()
|
|
@@ -295,11 +295,7 @@ export default {
|
|
|
|
|
|
// 新增模块
|
|
|
getPush() {
|
|
|
- let item = {}
|
|
|
- this.module.map(i => {
|
|
|
- item[i] = i === 'childList' ? [] : null
|
|
|
- })
|
|
|
- this.form.push(item)
|
|
|
+ this.form.push(this.module)
|
|
|
},
|
|
|
|
|
|
// 爱听专区
|