Commit a7d276c8 authored by 罗林杰's avatar 罗林杰

修改bug

parent 1b600be0
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
} }
topicList(form).then(res =>{ topicList(form).then(res =>{
//获取res.data.data里的topicName赋值给this.topicList,并且 //获取res.data.data里的topicName赋值给this.topicList,并且
if (res.data.data.length > 0){
this.topicList = res.data.data.map(item => { this.topicList = res.data.data.map(item => {
return { return {
id:item.businessId, id:item.businessId,
...@@ -167,6 +168,7 @@ ...@@ -167,6 +168,7 @@
//初始化话题id 锁到第一个话题 //初始化话题id 锁到第一个话题
this.topicId = this.topicList[0].id this.topicId = this.topicList[0].id
this.$emit('topicId', this.topicId) this.$emit('topicId', this.topicId)
}
}) })
}, },
// 接收父组件传过来的刷新列表要求 // 接收父组件传过来的刷新列表要求
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment