From 241bb145e35bfe4eee9977d2794c24ddd4bb5504 Mon Sep 17 00:00:00 2001 From: suhaotian Date: Sat, 27 Apr 2024 09:36:37 +1000 Subject: [PATCH] fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dff145f..00be59e 100644 --- a/README.md +++ b/README.md @@ -1684,8 +1684,8 @@ xior }, responseType: 'blob', }) - .then((res) => res.response.blob()) - .then((blob) => { + .then((res) => { + const { data: blob } = res; var url = window.URL.createObjectURL(blob); var a = document.createElement('a'); a.href = url;