广告图优化

This commit is contained in:
zxy
2024-03-11 17:54:59 +08:00
parent fc76ecec5c
commit 8fc22e5bf3
3 changed files with 13 additions and 10 deletions

View File

@@ -65,11 +65,7 @@
{
name: '轮播图',
select: true
},
// {
// name: '侧边栏',
// select: true
// },
}
],
menuList: [
@@ -85,6 +81,9 @@
menuDetail: {}
}
},
mounted() {
this.$refs.advertisementBody.bannerInit()
},
methods: {
titleActive (item) {
if(item.select)return
@@ -98,6 +97,7 @@
this.menuDetail = JSON.parse(JSON.stringify(item))
if (this.titleList[0].select) {
this.$refs.advertisementBody.onLoad()
// this.$refs.advertisementBody.bannerInit()
} else if (this.titleList[1].select) {
this.$refs.advertisementBody.bannerInit()
}