Browse Source

fix(export): 修复导出PDF时CDN配置不生效问题 (#1529)

玖涯 1 year ago
parent
commit
8763b61b9d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ts/export/index.ts

+ 1 - 0
src/ts/export/index.ts

@@ -34,6 +34,7 @@ window.addEventListener("message", (e) => {
     return;
     return;
   }
   }
   Vditor.preview(document.getElementById('preview'), e.data, {
   Vditor.preview(document.getElementById('preview'), e.data, {
+    cdn: "${vditor.options.cdn}",
     markdown: {
     markdown: {
       theme: "${vditor.options.preview.theme}"
       theme: "${vditor.options.preview.theme}"
     },
     },