修复bug
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user