// 预览previewClick(){this.previewDialogVisible =truethis.previewLoading=truepreview(this.id).then((res)=>{
console.log("res333333333", res);this.previewLoading=falserenderAsync(res,this.$refs.file,null,{className:'text-docx',//class name/prefix for default and document style classesinWrapper:true,//enables rendering of wrapper around document contentignoreWidth:false,//disables rendering width of pageignoreHeight:false,//disables rendering height of pageignoreFonts:false,//disables fonts renderingbreakPages:true,//enables page breaking on page breaksignoreLastRenderedPageBreak:true,//disables page breaking on lastRenderedPageBreak elementsexperimental:true,//enables experimental features (tab stops calculation)trimXmlDeclaration:true,//if true, xml declaration will be removed from xml documents before parsinguseBase64URL:false,//if true, images, fonts, etc. will be converted to base 64 URL, otherwise URL.createObjectURL is useduseMathMLPolyfill:true,//includes MathML polyfills for chrome, edge, etc.debug:false//enables additional logging})// 渲染到页面}).catch((err)=>{});},