Can‘t find end of central directory:is this a zip file?

Can‘t find end of central directory:is this a zip file?导出word模板遇到的错误

JSZipUtils.getBinaryContent(‘templete.docx’, (error, content) => {})调用时报错,Can‘t find end of central directory:is this a zip file?
引入模板路径有问题,改为JSZipUtils.getBinaryContent(’/templete.docx’, (error, content) => {})即可