From 68d839ab51dab23bcb12cfe243b318203025451b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 17 十二月 2020 18:39:54 +0800 Subject: [PATCH] 2020-12-17 --- src/components/header/index.jsx | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index 12a849a..f9fdafa 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -585,7 +585,22 @@ } changeSystem = (system) => { - let href = system.LinkUrl1 + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({ + let url = system.LinkUrl1 + + if (!url) { + notification.warning({ + top: 92, + message: '绯荤粺鍦板潃涓嶅瓨鍦紒', + duration: 5 + }) + return + } else if (/index\.html/ig.test(url)) { + url = url.replace(/index\.html.*/ig, '') + } else if (!/\/$/ig.test(url)) { + url = url + '/' + } + + let href = url + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({ UserID: sessionStorage.getItem('UserID'), LoginUID: sessionStorage.getItem('LoginUID'), User_Name: sessionStorage.getItem('User_Name'), -- Gitblit v1.8.0