Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
c35fd61a
提交
c35fd61a
authored
12月 21, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'modify_login' into M-2.6
上级
956dc885
5df79d76
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
22 行增加
和
16 行删除
+22
-16
.env.staging
.env.staging
+1
-1
Navbar.vue
src/layout/components/Navbar.vue
+3
-2
permission.js
src/permission.js
+5
-1
get-page-title.js
src/utils/get-page-title.js
+1
-0
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
没有找到文件。
.env.staging
浏览文件 @
c35fd61a
...
...
@@ -4,4 +4,4 @@ NODE_ENV = production
ENV = 'staging'
#gfast管理系统/测试环境
VUE_APP_BASE_API = '
http://192.168.26.179:6605
/api/v1'
VUE_APP_BASE_API = '/api/v1'
src/layout/components/Navbar.vue
浏览文件 @
c35fd61a
...
...
@@ -134,6 +134,7 @@ export default {
.
catch
(()
=>
{
})
sessionStorage
.
removeItem
(
'saveTitle'
)
},
async
logout
()
{
this
.
$confirm
(
'确定退出系统吗?'
,
'提示'
,
{
...
...
@@ -145,9 +146,9 @@ export default {
let
ssa
=
window
.
location
.
host
let
ht
=
document
.
location
.
protocol
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
{
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/permission.js
浏览文件 @
c35fd61a
...
...
@@ -16,7 +16,11 @@ router.beforeEach((to, from, next) => {
const
hasToken
=
getToken
()
// console.log("getToken()",getToken())
if
(
hasToken
)
{
getPageTitle
()
if
(
sessionStorage
.
getItem
(
'saveTitle'
))
{
document
.
title
=
sessionStorage
.
getItem
(
'saveTitle'
)
}
else
{
getPageTitle
()
}
/* has token*/
if
(
to
.
path
===
'/platformlogin'
)
{
...
...
src/utils/get-page-title.js
浏览文件 @
c35fd61a
...
...
@@ -8,6 +8,7 @@ export default function getPageTitle() {
getBaseSettingTitle
({
type
:
'SHOP'
}).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
document
.
title
=
res
.
data
sessionStorage
.
setItem
(
'saveTitle'
,
res
.
data
)
}
})
}
\ No newline at end of file
src/views/entry/newyuncang.vue
浏览文件 @
c35fd61a
...
...
@@ -785,14 +785,14 @@
store
.
dispatch
(
'LogOut'
).
then
(()
=>
{
let
ssa
=
window
.
location
.
host
;
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
()
{
let
ssa
=
window
.
location
.
host
;
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'
}
...
...
src/views/login.vue
浏览文件 @
c35fd61a
...
...
@@ -67,9 +67,9 @@ export default {
var
that
=
this
setTimeout
(
function
(){
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
{
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
window
.
location
.
href
=
ht
+
'//'
+
that
.
ssourl
+
'/login
.html
?redirect='
+
ht
+
'//'
+
ssa
+
'/platformlogin'
}
},
1000
)
}
...
...
src/views/platformlogin.vue
浏览文件 @
c35fd61a
...
...
@@ -89,9 +89,9 @@
let
that
=
this
setTimeout
(
function
()
{
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
{
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
)
}
...
...
@@ -104,9 +104,9 @@
let
that
=
this
setTimeout
(
function
()
{
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
{
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
)
this
.
loading
=
false
...
...
src/views/system/settings/setpsd.vue
浏览文件 @
c35fd61a
...
...
@@ -366,9 +366,9 @@
var
ssa
=
window
.
location
.
host
setTimeout
(
function
(){
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
{
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
)
})
...
...
@@ -394,9 +394,9 @@
var
ssa
=
window
.
location
.
host
setTimeout
(
function
(){
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
{
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
)
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论