fix: Pass selected API ID to getRandomWallpapers method

This commit is contained in:
sean2077 2025-08-08 23:09:39 +08:00
parent d7a13ea9ec
commit f385382877

View file

@ -560,7 +560,7 @@ export default class DynamicThemeBackgroundPlugin extends Plugin {
const loadingNotice = new Notice(t("notice_api_fetching", { apiName: selectedApi.getName() }), 0);
// 使用选中的API获取壁纸
const wallpaperImages = await apiManager.getRandomWallpapers();
const wallpaperImages = await apiManager.getRandomWallpapers(selectedApi.getId());
// 关闭加载提示
loadingNotice.hide();