update at 2025-10-16 18:10:27

This commit is contained in:
douboer
2025-10-16 18:10:27 +08:00
parent 411b7bbdb4
commit 8d40fbb01f
10 changed files with 1030 additions and 29 deletions

View File

@@ -204,6 +204,14 @@ export class PreviewManager {
this.showWechat();
this.hideXiaohongshu();
// 同步主题设置
if (this.wechatPreview) {
this.wechatPreview.updateStyleAndHighlight(
this.settings.defaultStyle,
this.settings.defaultHighlight
);
}
// 如果有当前文件且是从其他平台切换过来,重新渲染
if (this.currentFile && previousPlatform !== 'wechat') {
await this.renderForWechat(this.currentFile);
@@ -213,6 +221,14 @@ export class PreviewManager {
this.showXiaohongshu();
this.hideWechat();
// 同步主题设置
if (this.xhsPreview) {
this.xhsPreview.updateStyleAndHighlight(
this.settings.defaultStyle,
this.settings.defaultHighlight
);
}
// 如果有当前文件且是从其他平台切换过来,重新渲染
if (this.currentFile && previousPlatform !== 'xiaohongshu') {
await this.renderForXiaohongshu(this.currentFile);