bug
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<span>文明榜单</span>
|
||||
</div>
|
||||
</div>
|
||||
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000">
|
||||
<swiper class="banner" indicatorDots circular :autoplay="true" :interval="5000" v-if="bannerList.length">
|
||||
<swiper-item v-for="(item, index) in bannerList" :key="index">
|
||||
<image :src="item.imgUrl" mode="aspectFill" />
|
||||
</swiper-item>
|
||||
@@ -99,6 +99,11 @@
|
||||
...mapState(['user', 'token'])
|
||||
},
|
||||
|
||||
onShow () {
|
||||
this.isMore = false
|
||||
this.getList()
|
||||
},
|
||||
|
||||
onLoad () {
|
||||
if (!this.token) {
|
||||
this.autoLogin()
|
||||
@@ -106,7 +111,6 @@
|
||||
this.getUserInfo()
|
||||
}
|
||||
|
||||
this.getList()
|
||||
this.getBannerList()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user