From f4c459db44393a477a0c9112f8fab7ea6f888888 Mon Sep 17 00:00:00 2001 From: Your Name <xiongchengwei@thinker.vc> Date: Mon, 15 Jun 2020 09:23:27 +0800 Subject: [PATCH] debug --- src/utils/instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/instance.js b/src/utils/instance.js index 356b69c..73f505e 100644 --- a/src/utils/instance.js +++ b/src/utils/instance.js @@ -53,7 +53,7 @@ export const createAPI = (baseURL) => { if (!response || !response.data) { // response.status === 'failure' && (window.location.href = '/login') - response.code === 'idt-core-500' && (window.location.href = '/login') + response.code === 'idt-core-501' && (window.location.href = '/login') console.log('response出错, æ— è¿”å›žæ•°æ®ï¼', response); return false; }; if (response.data && response.data.errorMessage) { -- 2.17.1