Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
vion-label
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8a7417c4
authored
Nov 04, 2021
by
xmh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
<fix> 登出功能修复
1 parent
dd1283e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
label-platform/src/main/java/com/viontech/label/platform/config/WebConfig.java
label-platform/src/main/java/com/viontech/label/platform/controller/web/UserController.java
label-platform/src/main/java/com/viontech/label/platform/config/WebConfig.java
View file @
8a7417c
...
@@ -32,7 +32,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -32,7 +32,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
authInterceptor
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/users/login"
,
"/reid/upload"
,
"/**/websocket/**
"
);
registry
.
addInterceptor
(
authInterceptor
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/users/login"
,
"/reid/upload"
,
"/**/websocket/**"
,
"/users/logout
"
);
}
}
@Bean
@Bean
...
...
label-platform/src/main/java/com/viontech/label/platform/controller/web/UserController.java
View file @
8a7417c
...
@@ -82,6 +82,7 @@ public class UserController extends UserBaseController {
...
@@ -82,6 +82,7 @@ public class UserController extends UserBaseController {
}
}
@GetMapping
(
"/logout"
)
@GetMapping
(
"/logout"
)
@ResponseBody
public
Object
logout
()
{
public
Object
logout
()
{
StpUtil
.
logout
();
StpUtil
.
logout
();
return
JsonMessageUtil
.
getSuccessJsonMsg
();
return
JsonMessageUtil
.
getSuccessJsonMsg
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment