feat: 增加加载中遮罩
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user