From d2947fd20338c249b34f64592e9b562929d12b01 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Sun, 29 Sep 2024 16:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BB=E5=8F=96=E6=96=87=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/file.js b/src/utils/file.js index 09ef907..addb121 100644 --- a/src/utils/file.js +++ b/src/utils/file.js @@ -58,6 +58,7 @@ export const readFile = (file, fileType = 'text') => { resolve(event.target.result) } fileReader.onerror = error => { + message.error('无法读取文件,请确认文件是否被修改') reject(error) } })