修改显示小区bug
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
@clickItem="clickItem"
|
||||
:info="bannerList"
|
||||
:current="current"
|
||||
mode="round"
|
||||
mode="default"
|
||||
>
|
||||
<swiper class="swiper-box" :current="current" @change="onSwiperChange" autoplay>
|
||||
<swiper-item v-for="(item, index) in bannerList" :key="index">
|
||||
@@ -238,6 +238,8 @@ const goToReport = () => {
|
||||
}
|
||||
// 获取当前小区
|
||||
const currentVillageData = () => {
|
||||
// 先重置,避免新账号无小区时仍显示旧账号的小区
|
||||
currentCommunity.value = '请选择小区'
|
||||
getCurrentVillage()
|
||||
.then(res => {
|
||||
const data = res.data
|
||||
@@ -306,6 +308,7 @@ const slelctHomeData = data => {
|
||||
onShow(()=>{
|
||||
getbannarData()
|
||||
getInspectionData()
|
||||
currentVillageData()
|
||||
})
|
||||
|
||||
onLoad(() => {
|
||||
|
||||
Reference in New Issue
Block a user