From 83d4c07a67e7588e3938237cfad9eaa6be5ea6c5 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Mon, 12 Dec 2022 19:00:47 +0800
Subject: [PATCH] initial v1.3.1

---
 src/api/media.ts |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/api/media.ts b/src/api/media.ts
index 9a03ef5..634bd13 100644
--- a/src/api/media.ts
+++ b/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
   }

--
Gitblit v1.9.3