Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
5efc64b4
Commit
5efc64b4
authored
Jun 29, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: 修复登出问题
parent
3660f01d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/pages/frame/services/accountService.js
src/pages/frame/services/accountService.js
+5
-3
src/pages/frame/view/login/Login.vue
src/pages/frame/view/login/Login.vue
+1
-1
No files found.
src/pages/frame/services/accountService.js
View file @
5efc64b4
...
@@ -25,9 +25,11 @@ export function logout() {
...
@@ -25,9 +25,11 @@ export function logout() {
// localStorage.removeItem(process.env.VUE_APP_PERMISSIONS_KEY);
// localStorage.removeItem(process.env.VUE_APP_PERMISSIONS_KEY);
// localStorage.removeItem(process.env.VUE_APP_ROLES_KEY);
// localStorage.removeItem(process.env.VUE_APP_ROLES_KEY);
// localStorage.removeItem(process.env.VUE_APP_USER_KEY);
// localStorage.removeItem(process.env.VUE_APP_USER_KEY);
clearToken
();
return
logoutApi
().
then
(
res
=>
{
clearUserId
();
clearToken
();
return
logoutApi
();
clearUserId
();
return
res
;
});
}
}
export
default
{
export
default
{
...
...
src/pages/frame/view/login/Login.vue
View file @
5efc64b4
...
@@ -115,7 +115,7 @@ export default {
...
@@ -115,7 +115,7 @@ export default {
const
{
token
,
userId
}
=
result
;
const
{
token
,
userId
}
=
result
;
setToken
(
token
);
setToken
(
token
);
setUserId
(
userId
);
setUserId
(
userId
);
this
.
$router
.
replace
(
'
/
dashboard/workbench
'
);
this
.
$router
.
replace
(
'
/
'
);
}
catch
(
error
)
{
}
catch
(
error
)
{
// todo
// todo
}
}
...
...
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