修改显示小区bug

This commit is contained in:
zhouyanli
2026-06-04 17:01:28 +08:00
parent ade0d2d547
commit 2ba24f2320
4 changed files with 9 additions and 2 deletions

View File

@@ -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(() => {