update at 2025-10-08 19:45:28
This commit is contained in:
@@ -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('无法获取预览视图');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user