update at 2025-10-16 18:10:27
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user