修复:解决测试发现的问题

This commit is contained in:
2025-11-12 16:00:44 +08:00
parent 1da75a59f2
commit 1daa6367c9
29 changed files with 133 additions and 182 deletions

View File

@@ -112,13 +112,8 @@ const getData = async () => {
try {
loading.value = true
uni.showLoading({
title: t('common.loading')
})
const res = await getOrderList(page.value.current, page.value.limit)
uni.hideLoading()
if (res.orders && res.orders.records) {
total.value = res.orders.total
@@ -139,7 +134,6 @@ const getData = async () => {
}
} catch (error) {
console.error('获取订单列表失败:', error)
uni.hideLoading()
} finally {
loading.value = false
}