husq
2023-09-08 0c070817accc40e6c8a2a1479fe2a9ee6f2f5d3e
src/api/media.ts
@@ -15,12 +15,11 @@
  if (result.data.type === 'application/json') {
    const reader = new FileReader()
    reader.onload = function (e) {
      let text = reader.result as string
      const text = reader.result as string
      const result = JSON.parse(text)
      message.error(result.message)
    }
    reader.readAsText(result.data, 'utf-8')
    return
  } else {
    return result.data
  }