Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
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
integralMall
integral-mall
Commits
f79595ab
Commit
f79595ab
authored
Sep 28, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 登录账号变更提示
parent
43b49298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
App.vue
src/App.vue
+7
-11
No files found.
src/App.vue
View file @
f79595ab
...
@@ -31,23 +31,19 @@ export default {
...
@@ -31,23 +31,19 @@ export default {
if
(
res
.
data
.
errorCode
===
0
)
{
if
(
res
.
data
.
errorCode
===
0
)
{
const
useId
=
res
.
data
.
result
&&
res
.
data
.
result
.
userId
;
const
useId
=
res
.
data
.
result
&&
res
.
data
.
result
.
userId
;
if
(
localStorage
.
getItem
(
'useId'
)
!==
useId
)
{
if
(
localStorage
.
getItem
(
'useId'
)
!==
useId
)
{
localStorage
.
setItem
(
'useId'
,
useId
);
// 串号
// 串号
this
.
$confirm
(
'当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请
退出重新登录!'
,
'
提示'
,
{
this
.
$confirm
(
'当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请
重新登录!'
,
'登录账号变更
提示'
,
{
type
:
'error
'
,
confirmButtonText
:
'重新登录
'
,
c
onfirmButtonText
:
'退出重新登录
'
,
c
ancelButtonText
:
'刷新页面
'
,
cancelButtonText
:
'刷新页面
'
type
:
'error
'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
localStorage
.
setItem
(
'useId'
,
useId
);
window
.
location
.
href
=
'/gic-web/#/login'
;
// window.location.reload();
this
.
doLogout
();
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
// window.location.reload();
window
.
location
.
href
=
'/report'
;
this
.
doLogout
();
});
});
}
else
{
localStorage
.
setItem
(
'useId'
,
useId
);
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
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