瀏覽代碼

频道管理 定制频道

DESKTOP-O04BTUJ\muzen 3 年之前
父節點
當前提交
2990cd6d2a
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/channel/custom/detail.vue

+ 3 - 2
src/views/channel/custom/detail.vue

@@ -156,7 +156,6 @@ export default {
           this.classifyOptions = res.data
           this.classifyOptions = res.data
         }
         }
       })
       })
-      console.log(this.channelId, this.form);
       channelList({
       channelList({
         channelId: this.channelId,
         channelId: this.channelId,
         audioType: this.form.channelType,
         audioType: this.form.channelType,
@@ -168,7 +167,9 @@ export default {
           this.$nextTick(() => {
           this.$nextTick(() => {
             this.tableData.map(i => {
             this.tableData.map(i => {
               let row = res.data[0].pageData.records.find(j => j.id === i.audioId)
               let row = res.data[0].pageData.records.find(j => j.id === i.audioId)
-              this.$refs.table.toggleRowSelection(row)
+              if (row) {
+                this.$refs.table.toggleRowSelection(row)
+              }
             })
             })
           })
           })
         }
         }