Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2608e4ea
authored
2020-02-21 19:30:47 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
5679a14f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
src/components/home/dropdown/dropdown.js
src/components/home/m-dropdown/m-dropdown.js
src/components/home/dropdown/dropdown.js
View file @
2608e4e
...
...
@@ -141,6 +141,7 @@ export default {
}
},
logoutHandler
()
{
this
.
clearCache
();
httpPost
({
url
:
api
.
logout
}).
then
(()
=>
{
...
...
@@ -148,6 +149,13 @@ export default {
this
.
showLogoutTip
();
});
},
clearCache
()
{
for
(
let
index
=
0
;
index
<
sessionStorage
.
length
;
index
++
)
{
let
key
=
sessionStorage
.
key
(
index
);
console
.
log
(
key
);
sessionStorage
.
removeItem
(
key
);
}
},
showLogoutTip
()
{
// 登出后的提示
// alert("登出成功");
...
...
src/components/home/m-dropdown/m-dropdown.js
View file @
2608e4e
...
...
@@ -95,6 +95,7 @@ export default {
}
},
logoutHandler
()
{
console
.
log
(
"logoutHandler"
);
this
.
clearCache
();
httpPost
({
url
:
api
.
logout
...
...
@@ -106,6 +107,7 @@ export default {
clearCache
()
{
for
(
let
index
=
0
;
index
<
sessionStorage
.
length
;
index
++
)
{
let
key
=
sessionStorage
.
key
(
index
);
console
.
log
(
key
);
sessionStorage
.
removeItem
(
key
);
}
},
...
...
Please
register
or
sign in
to post a comment