读取文件时增加错误提示
This commit is contained in:
parent
c7205539ad
commit
d2947fd203
|
@ -58,6 +58,7 @@ export const readFile = (file, fileType = 'text') => {
|
|||
resolve(event.target.result)
|
||||
}
|
||||
fileReader.onerror = error => {
|
||||
message.error('无法读取文件,请确认文件是否被修改')
|
||||
reject(error)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user