bug
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<div class="titles">{{data.title}}</div>
|
||||
|
||||
<div class="titles-bottom">
|
||||
<span>类型:</span>
|
||||
<span>{{selectList[data.showIndex].categoryName}}</span>
|
||||
<span v-if="selectList.length">类型:</span>
|
||||
<span v-if="selectList.length">{{data.categoryName}}</span>
|
||||
<span class="to-left">浏览量:</span>
|
||||
<span>{{data.viewCount}}</span>
|
||||
</div>
|
||||
@@ -48,13 +48,6 @@ export default {
|
||||
this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.data = res.data
|
||||
if(this.selectList.length) {
|
||||
this.selectList.map((item, index) => {
|
||||
if(item.id == res.data.categoryId) {
|
||||
this.data.showIndex = index
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -63,8 +56,8 @@ export default {
|
||||
if (res.code == 0) {
|
||||
if(res.data && res.data[0].categoryList.length) {
|
||||
this.selectList = res.data[0].categoryList
|
||||
this.getDetail()
|
||||
}
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user