fix: bizhi detail

This commit is contained in:
zzc
2026-02-26 14:58:04 +08:00
parent 9137a3410b
commit 2d178fa470
2 changed files with 10 additions and 12 deletions

View File

@@ -174,6 +174,10 @@ onLoad((options) => {
shareToken.value = options.shareToken;
saveViewRequest(options.shareToken, "wallpaper_download");
}
if (options.categoryId) {
currentCategoryId.value = options.categoryId;
}
fetchCategories();
trackRecord({
eventName: "wallpaper_page_visit",
eventType: `visit`,
@@ -190,7 +194,9 @@ const fetchCategories = async () => {
const list = Array.isArray(res) ? res : res?.list || [];
if (list.length > 0) {
categories.value = list;
currentCategoryId.value = list[0].id;
if (!currentCategoryId.value) {
currentCategoryId.value = list[0].id;
}
loadWallpapers(true);
}
} catch (e) {