fix: 修复插件市场按钮构建错误

This commit is contained in:
eondrcode 2026-05-24 16:19:55 +08:00
parent 65eeb64fd5
commit c536ae308d

View file

@ -353,13 +353,13 @@ export class ManagerModal extends Modal {
private async openPluginMarket() {
await this.appSetting.open();
await this.appSetting.openTabById("community-plugins");
window.setTimeout(() => {
const tab = this.appSetting.activeTab;
const marketButton = tab?.containerEl?.querySelector<HTMLButtonElement>("button.mod-cta");
marketButton?.click();
}, 50);
}
await this.appSetting.openTabById("community-plugins");
window.setTimeout(() => {
const tab = this.appSetting.activeTab;
const marketButton = tab?.containerEl?.querySelector("button.mod-cta") as HTMLButtonElement | null | undefined;
marketButton?.click();
}, 50);
}
private async runSinglePluginUpdateCheck(pluginId: string) {
const progress = this.showInlineProgress(this.manager.translator.t("通知_检测更新中文案"), pluginId);