Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
77759aa4
提交
77759aa4
authored
12月 17, 2021
作者:
郑伟娜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改登录/退出跳转
上级
37d0004d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
Navbar.vue
src/layout/components/Navbar.vue
+2
-2
newyuncang.vue
src/views/entry/newyuncang.vue
+2
-2
login.vue
src/views/login.vue
+2
-2
platformlogin.vue
src/views/platformlogin.vue
+4
-4
setpsd.vue
src/views/system/settings/setpsd.vue
+4
-4
没有找到文件。
src/layout/components/Navbar.vue
浏览文件 @
77759aa4
...
@@ -145,9 +145,9 @@ export default {
...
@@ -145,9 +145,9 @@ export default {
let
ssa
=
window
.
location
.
host
let
ssa
=
window
.
location
.
host
let
ht
=
document
.
location
.
protocol
let
ht
=
document
.
location
.
protocol
if
(
ssa
==
'localhost:1024'
){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
}
})
})
})
})
...
...
src/views/entry/newyuncang.vue
浏览文件 @
77759aa4
...
@@ -785,14 +785,14 @@
...
@@ -785,14 +785,14 @@
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
let
ssa
=
window
.
location
.
host
;
let
ssa
=
window
.
location
.
host
;
let
ht
=
document
.
location
.
protocol
;
let
ht
=
document
.
location
.
protocol
;
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/login?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/login
.html
?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
})
})
},
},
// 去登录
// 去登录
toLogin
()
{
toLogin
()
{
let
ssa
=
window
.
location
.
host
;
let
ssa
=
window
.
location
.
host
;
let
ht
=
document
.
location
.
protocol
;
let
ht
=
document
.
location
.
protocol
;
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/login?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
window
.
location
.
href
=
ht
+
'//'
+
this
.
ssourl
+
'/login
.html
?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
// window.location.href = 'http://sso.jxhh.com/login?redirect=http://' + window.location.host + '/platformlogin'
// window.location.href = 'http://sso.jxhh.com/login?redirect=http://' + window.location.host + '/platformlogin'
}
}
...
...
src/views/login.vue
浏览文件 @
77759aa4
...
@@ -67,9 +67,9 @@ export default {
...
@@ -67,9 +67,9 @@ export default {
var
that
=
this
var
that
=
this
setTimeout
(
function
(){
setTimeout
(
function
(){
if
(
ssa
==
'localhost:1024'
){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login
.html
?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
}
else
{
}
else
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login
.html
?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
}
}
},
1000
)
},
1000
)
}
}
...
...
src/views/platformlogin.vue
浏览文件 @
77759aa4
...
@@ -89,9 +89,9 @@
...
@@ -89,9 +89,9 @@
let
that
=
this
let
that
=
this
setTimeout
(
function
()
{
setTimeout
(
function
()
{
if
(
ssa
==
'localhost:1024'
)
{
if
(
ssa
==
'localhost:1024'
)
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
}
},
1000
)
},
1000
)
}
}
...
@@ -104,9 +104,9 @@
...
@@ -104,9 +104,9 @@
let
that
=
this
let
that
=
this
setTimeout
(
function
()
{
setTimeout
(
function
()
{
if
(
ssa
==
'localhost:1024'
)
{
if
(
ssa
==
'localhost:1024'
)
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/
api/v2/
logout?redirect='
+
ht
+
'//'
+
ssa
+
'/login'
}
}
},
1000
)
},
1000
)
this
.
loading
=
false
this
.
loading
=
false
...
...
src/views/system/settings/setpsd.vue
浏览文件 @
77759aa4
...
@@ -366,9 +366,9 @@
...
@@ -366,9 +366,9 @@
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
setTimeout
(
function
(){
setTimeout
(
function
(){
if
(
ssa
==
'localhost:1024'
){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/
api/v2/
logout?redirect=http://'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/
api/v2/
logout?redirect=http://'
+
ssa
+
'/login'
}
}
},
1000
)
},
1000
)
})
})
...
@@ -394,9 +394,9 @@
...
@@ -394,9 +394,9 @@
var
ssa
=
window
.
location
.
host
var
ssa
=
window
.
location
.
host
setTimeout
(
function
(){
setTimeout
(
function
(){
if
(
ssa
==
'localhost:1024'
){
if
(
ssa
==
'localhost:1024'
){
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/
api/v2/
logout?redirect=http://'
+
ssa
+
'/login'
}
else
{
}
else
{
window
.
location
.
href
=
'http://sso.jxhh.com/logout?redirect=http://'
+
ssa
+
'/login'
window
.
location
.
href
=
'http://sso.jxhh.com/
api/v2/
logout?redirect=http://'
+
ssa
+
'/login'
}
}
},
1000
)
},
1000
)
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论