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