Skip to content

Commit a83f792

Browse files
committedApr 11, 2020
广告位判断
1 parent d91fc59 commit a83f792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/components/AsideAd.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="ad-box">
2+
<div v-if="adList.length" class="ad-box">
33
<swiper ref="mySwiper" :options="swiperOptions">
44
<swiper-slide v-for="(item, index) in adList" :key="index">
55
<a :href="item.adUrl" target="_blank" class="item-box">
@@ -20,7 +20,7 @@ export default {
2020
name: 'AsideAd',
2121
data () {
2222
return {
23-
adList: '',
23+
adList: [],
2424
swiperOptions: {
2525
loop: true,
2626
autoplay: {

0 commit comments

Comments
 (0)
Failed to load comments.