update at 2025-10-08 19:45:28

This commit is contained in:
douboer
2025-10-08 19:45:28 +08:00
parent 5d32c0f5e7
commit 3460669602
20 changed files with 3325 additions and 101 deletions

View File

@@ -533,14 +533,14 @@ export class BatchPublishModal extends Modal {
* 发布到微信公众号
*/
private async publishToWechat(file: TFile): Promise<void> {
// TODO: 重构后需要重新实现批量发布到微信
// 激活预览视图并发布
await this.plugin.activateView();
const preview = this.plugin.getNotePreview();
if (preview) {
// 确保预览器处于微信模式
preview.currentPlatform = 'wechat';
await preview.renderMarkdown(file);
await preview.postToWechat();
// 临时方案:直接打开文件让用户手动发布
await preview.setFile(file);
throw new Error('批量发布功能正在重构中,请在预览视图中手动发布');
} else {
throw new Error('无法获取预览视图');
}