feat:引入懒加载,防止弱网情况下无法正常加载应用图标或详情页图片

This commit is contained in:
2026-02-27 23:25:38 +08:00
parent 88670be15e
commit 749cf3d3bf
3 changed files with 26 additions and 13 deletions

View File

@@ -349,11 +349,7 @@ const loadScreenshots = (app: App) => {
screenshots.value = [];
for (let i = 1; i <= 5; i++) {
const screenshotUrl = `${APM_STORE_BASE_URL}/${window.apm_store.arch}/${app.category}/${app.pkgname}/screen_${i}.png`;
const img = new Image();
img.src = screenshotUrl;
img.onload = () => {
screenshots.value.push(screenshotUrl);
};
screenshots.value.push(screenshotUrl);
}
};