feat: 增加加载中遮罩

This commit is contained in:
2026-09-11 17:27:58 +08:00
parent d43d61e6fb
commit 69e3fd1365

View File

@@ -172,10 +172,17 @@ const dataList = ref([])
watch(() => recordStore.isRefresh, () => paging.value.reload())
function queryList(pageNo, pageSize) {
wx.showLoading({
title: '加载中...',
mask: true
})
recordStore.getRecordListByPageApi(pageNo, pageSize).then(res => {
paging.value.complete(res.records);
}).catch(res => {
paging.value.complete(false);
}).finally(() => {
wx.hideLoading()
})
}