fix: index detail

This commit is contained in:
zzc
2026-02-26 15:14:55 +08:00
parent 5738464cc8
commit a883caf981
3 changed files with 29 additions and 16 deletions

View File

@@ -146,6 +146,10 @@ onLoad(async (options) => {
if (options.imageUrl) {
detailData.value.imageUrl = decodeURIComponent(options.imageUrl);
}
if (options.categoryId) {
categoryId.value = options.categoryId;
}
fetchRecommend(options.id);
});
@@ -197,7 +201,7 @@ const fetchRecommend = async (id) => {
try {
const res = await getWallpaperSameList(id || detailData.value.id);
recommendList.value = res;
categoryId.value = res[0]?.categoryId || "";
// categoryId.value = res[0]?.categoryId || "";
} catch (e) {
console.error("Failed to fetch recommendations", e);
}