Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shareConfig
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
shareConfig
Commits
f35b1957
Commit
f35b1957
authored
Sep 28, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 登录账号变更提示
parent
01928313
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
App.vue
src/App.vue
+10
-9
No files found.
src/App.vue
View file @
f35b1957
...
...
@@ -50,17 +50,18 @@ export default {
const
uId
=
res
.
data
.
result
&&
res
.
data
.
result
.
userId
;
// 两次的uId不等 表示账号有冲突
if
(
this
.
uniqueId
!==
uId
)
{
this
.
$confirm
(
'当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!'
,
'登录账号变更提示'
,
{
confirmButtonText
:
'退出重新登录'
,
this
.
$store
.
commit
(
'changeUniqueId'
,
uId
);
this
.
$confirm
(
'当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!'
,
'登录账号变更提示'
,
{
confirmButtonText
:
'重新登录'
,
cancelButtonText
:
'刷新页面'
,
type
:
'error'
})
.
then
(()
=>
{
this
.
laout
();
window
.
location
.
reload
()
;
}).
catch
(()
=>
{
this
.
laout
();
window
.
location
.
reload
()
;
});
})
.
then
(()
=>
{
window
.
location
.
href
=
'/gic-web/#/login'
;
})
.
catch
(()
=>
{
window
.
location
.
href
=
'/report'
;
});
}
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment