refactor: vue3 axios api ...

This commit is contained in:
xingyu
2022-07-19 22:33:54 +08:00
parent ba96eef51a
commit 9e2e220b69
121 changed files with 1022 additions and 9700 deletions

View File

@ -53,7 +53,9 @@ const beforeUpload = (file: Blob) => {
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = () => {
state.options.img = reader.result
if (reader.result) {
state.options.img = reader.result as string
}
}
}
}