修改菜单

master
夜笙歌 2 weeks ago
parent 6f8e402751
commit 8b30094272

@ -29,7 +29,7 @@
<div class="info2">
<div class="name2">产品图示</div>
</div>
<div v-for=" i in contentList.hwProductInfoDetailList.map(e=>e.productInfoDetailPic)">
<div v-for=" i in ((contentList||{}).hwProductInfoDetailList||[]).map(e=>e.productInfoDetailPic)">
<img :src="i.productInfoDetailPic" alt=""
style="width: 100%">
</div>
@ -91,13 +91,14 @@ export default {
},
watch: {
'$route'() {
this.getData()
console.log('$route')
this.getContentList()
}
},
methods: {
getContentList(id) {
getProductCenterProductInfos({
configTypeId: id,
configTypeId: this.$route.query.id,
// parentId: 0
}).then(e => {
this.contentList = e.data.filter(v => v.configModal === '13').sort((a, b) => a.productInfoOrder - b.productInfoOrder)?.[0]
@ -122,6 +123,7 @@ export default {
this.tabsList = e.rows
this.configTypeId = e.rows?.[0]?.configTypeId
if (e.rows?.[0]?.configTypeId) {
console.log('getContentList')
this.getContentList(e.rows?.[0]?.configTypeId)
} else {
this.contentList = []

Loading…
Cancel
Save