胡思旗
2023-08-28 dcfcb1f1c1f0e0d9084082b14f2b8997dca6fe0f
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
  }