From 71a0e75ecb56ae643fe1e86188d45f93f48388c9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 八月 2020 14:07:41 +0800 Subject: [PATCH] 2020-08-28 --- src/api/index.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index ac8f0f2..fd30362 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -59,6 +59,11 @@ const setCurrentUrl = () => { if (!!(window.history && window.history.pushState)) { + if (window.location.href.indexOf('paramsmain') > -1) { + let _href = window.location.href.split('#') + localStorage.setItem(_href[0] + 'paramsmain', _href[1]) + } + sessionStorage.clear() window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') window.location.reload() -- Gitblit v1.8.0