Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
71e14a04
Commit
71e14a04
authored
Oct 18, 2021
by
maxiaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登出
parent
d56faf0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/views/Home/Home.vue
+3
-4
No files found.
src/views/Home/Home.vue
View file @
71e14a04
...
...
@@ -23,7 +23,7 @@
</ul>
</div>
</div>
<div
style=
"border: #f6a51a 1px solid"
@
click=
"logout"
>
<div
@
click=
"logout"
>
<img
src=
"../../assets/img/Home/exit.svg"
alt=
""
/>
安全退出
</div>
</div>
...
...
@@ -118,11 +118,10 @@ export default {
},
logout
()
{
this
.
$axios
.
post
(
"/login/login/userLogout"
).
then
(
res
=>
{
console
.
info
(
res
);
if
(
res
.
data
.
code
===
"200"
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
$router
.
replace
(
"/login1"
);
localStorage
.
removeItem
(
"token"
);
this
.
$message
.
success
(
"退出成功!"
);
this
.
$router
.
replace
(
"/login1"
);
}
});
}
...
...
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