修复bug

This commit is contained in:
zhouyanli
2026-08-13 14:12:11 +08:00
parent 94146ce27a
commit 32765cc004
12 changed files with 145 additions and 48 deletions

View File

@@ -63,9 +63,11 @@
<script setup>
import {
ref,
onMounted
ref
} from 'vue'
import {
onShow
} from '@dcloudio/uni-app'
import {
getCarList
} from '@/pageSubPack/api/apiSub.js'
@@ -83,8 +85,12 @@
getList()
}
// 页面加载时请求第一页
onMounted(() => {
// 页面显示时请求第一页(首次进入和从详情/修改页返回时都会刷新)
onShow(() => {
pageNum.value = 1
noMoreData.value = false
parkingSpaceList.value = []
loadingMore.value = false
getList()
})