Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
b0d1fe80
Commit
b0d1fe80
authored
Aug 09, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:重新登录清除用户
parent
19109ed5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
RoleDetail.vue
src/components/Roles/RoleDetail.vue
+1
-1
index.vue
src/pages/Login/index.vue
+2
-1
No files found.
src/components/Roles/RoleDetail.vue
View file @
b0d1fe80
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
roleId
=
this
.
$route
.
query
.
roleId
;
this
.
roleId
=
this
.
$route
.
query
.
roleId
;
let
{
email
}
=
this
.
$store
.
state
.
userInfo
;
let
email
=
this
.
$store
.
state
.
userInfo
;
reqGetAll_role_list
(
email
,
this
.
appId
).
then
((
res
)
=>
{
reqGetAll_role_list
(
email
,
this
.
appId
).
then
((
res
)
=>
{
this
.
permissionsAll
=
res
.
permissions
;
this
.
permissionsAll
=
res
.
permissions
;
});
});
...
...
src/pages/Login/index.vue
View file @
b0d1fe80
...
@@ -50,8 +50,9 @@ export default {
...
@@ -50,8 +50,9 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapActions
([
'userLogin'
]),
...
mapActions
([
'userLogin'
,
'logout'
]),
async
login
()
{
async
login
()
{
this
.
logout
()
const
{
email
}
=
this
.
userInfo
;
const
{
email
}
=
this
.
userInfo
;
let
validEmail
=
email
.
match
(
/@yidian-inc.com|@linkingcities/
);
let
validEmail
=
email
.
match
(
/@yidian-inc.com|@linkingcities/
);
if
(
!
email
)
{
if
(
!
email
)
{
...
...
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