From f6b0e262db2af5ca2e5ed76f95e746c1dd3c58e3 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 01 二月 2024 15:17:47 +0800 Subject: [PATCH] 开发业务接口 --- platform/src/plugins/download.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/platform/src/plugins/download.js b/platform/src/plugins/download.js index f4c5876..87e98f0 100644 --- a/platform/src/plugins/download.js +++ b/platform/src/plugins/download.js @@ -2,11 +2,12 @@ import message from './message' export default function (response, decode = true, mime = 'application/octet-stream') { + debugger // 褰撲笅杞芥帴鍙f病鏈夋垚鍔熻繑鍥炴祦骞朵笖鎺ュ彛杩斿洖鐨勬槸JSON鏃堕渶瑕佸鍝嶅簲娴佽繘琛岃В鏋愬苟鎻愮ず閿欒銆傦紙澶勭悊涓嬭浇鎺ュ彛鍑虹幇鏈煡寮傚父鐨勬儏鍐碉級 if (response.headers['content-type'] === 'application/json') { const blob = new Blob([response.data]) const fileReader = new FileReader() - fileReader.readAsText(blob, 'utf-8') + fileReader.readAsText(blob, 'UTF-8') fileReader.onload = function () { message.apiFailed(JSON.parse(fileReader.result)) } -- Gitblit v1.9.3