test: log输出

This commit is contained in:
hzj 2026-01-12 10:56:46 +08:00
parent 23e4c53565
commit 6e87bf1f47
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export const preloadImages = async (sources) => {
// 等待所有预加载完成
try {
await Promise.all(preloadPromises)
console.log('图片预加载完成')
} catch (error) {
console.error('预加载图片失败:', error)
throw error // 重新抛出错误,让调用方可以处理

View File

@ -2671,6 +2671,7 @@ const completePreloading = async () => {
try {
//
await Promise.all([initData(), preloadCriticalImages()])
console.log('预加载完成,初始化数据成功')
} catch (error) {
console.error('预加载过程中发生错误:', error)
} finally {