From a59f5351dc0c3ada6c01fcebfcf963096a01f3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 18 Jan 2020 11:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/AppConfig.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 3ad90add8..32b2d9eaf 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -137,12 +137,7 @@ export function initAxiosInterceptors(props) { const _params = window.location.search; var u = navigator.userAgent; if (_params) { - let _cookie = ''; let _search = _params.split('?')[1]; - if(_search.split('=')) { - _cookie = _search.split('=')[1]; - cookie.save('_educoder_session', _cookie); - } _search.split('&').forEach(item => { const _arr = item.split('='); cookie.save(_arr[0], _arr[1], {