From 2cd4e0aa16542b1832da62443f30c09d082b59e7 Mon Sep 17 00:00:00 2001 From: liyulin <501351981@qq.com> Date: Sun, 27 Aug 2023 22:09:49 +0800 Subject: [PATCH] =?UTF-8?q?doc=EF=BC=9A=E8=8E=B7=E5=8F=96=E4=BA=8C?= =?UTF-8?q?=E8=BF=9B=E5=88=B6=E6=96=87=E4=BB=B6=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5801c5b..cf2fe8d 100644 --- a/README.md +++ b/README.md @@ -131,17 +131,17 @@ export default { return { docx: '' } - }, - mounted(){ - fetch('你的API文件地址', { - method: 'post' - }).then(res=>{ - //读取文件的arrayBuffer - res.arrayBuffer().then(res=>{ - this.src = res - }) + }, + mounted(){ + fetch('你的API文件地址', { + method: 'post' + }).then(res=>{ + //读取文件的arrayBuffer + res.arrayBuffer().then(res=>{ + this.docx = res }) - }, + }) + }, methods:{ rendered(){ console.log("渲染完成")