From 553ab3ac48e4990389e3c878f0f7d58e61880a7a Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 19 Apr 2022 17:46:23 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/api.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/assets/api.js b/src/assets/api.js index fa5c9b7d..28e70586 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -14,7 +14,6 @@ if (process.env.NODE_ENV == "production") { } // export let HOST = host; // export let API_URL = api_url; - // export const baseurl = window.baseurl const upload = (method, url, params, responseType) => { @@ -48,8 +47,9 @@ const upload = (method, url, params, responseType) => { } }) .catch(); - break; + default: + return; } } }); @@ -103,6 +103,8 @@ const derive = (method, url, params, responseType) => { }) .catch(); break; + default: + return; } } }); @@ -161,6 +163,8 @@ const getData = (method, url, params, responseType) => { .catch(); break; + default: + return; } } }); @@ -241,6 +245,8 @@ const req = (method, url, params, responseType) => { .catch(); break; + default: + return; } } });