fix: index detail
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user