فهرست منبع

Merge branch 'develop/3.0.8' into test

DESKTOP-2S67K1S\31396 2 سال پیش
والد
کامیت
bd5052dc5e
1فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 2 6
      src/views/operation/recommend/detail.vue

+ 2 - 6
src/views/operation/recommend/detail.vue

@@ -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)
     },
 
     // 爱听专区