第一步:安装html-docx-js依赖
npm install html-docx-js --save-dev第二步:引入网页转为word格式方法
import htmlToDocx from 'html-docx-js/dist/html-docx';第三步:使用网页转为word格式方法
const content = this.$refs.content.innerHTML;  //HTML内容
const blob = htmlToDocx.asBlob(content);如果需要把word下载下来需要配合saveAs一起来用;