提交
This commit is contained in:
@ -21,13 +21,10 @@ const getUrlParam = () => {
|
||||
|
||||
// 检查token并进行跳转
|
||||
const checkTokenAndRedirect = () => {
|
||||
debugger;
|
||||
// 获取路由参数url
|
||||
const redirectUrl = getUrlParam();
|
||||
|
||||
// 检查localStorage中是否存在token
|
||||
const token = getItem('SSOTOKEN') || getItem('token');
|
||||
|
||||
if (token) {
|
||||
// 如果存在token,直接跳转到url参数指定的地址
|
||||
if (redirectUrl) {
|
||||
|
||||
Reference in New Issue
Block a user