Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用html-docx-js asBlob方法返回的blob对象,下载是正常的,预览页面空白没有渲染 #411

Open
wanxiangtianyin opened this issue Dec 24, 2024 · 1 comment

Comments

@wanxiangtianyin
Copy link

`let contentHtml = this.$refs['wordContent'].innerHTML;

  let contentConverted = htmlDocx.asBlob(content);
  this.wordSrc = URL.createObjectURL(contentConverted );
  fileSaver.saveAs(contentConverted, '测试.docx');

`

docx渲染空白

@wanxiangtianyin
Copy link
Author

<VueOfficeDocx :src="wordSrc"></VueOfficeDocx>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant