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
4607d7f0
Commit
4607d7f0
authored
May 30, 2024
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理跳转账号密码处理
parent
a7ad96c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/views/index/shouye.vue
+6
-1
src/views/login/login.vue
+5
-3
No files found.
src/views/index/shouye.vue
View file @
4607d7f0
...
...
@@ -4337,6 +4337,11 @@ export default {
doLogin
({
identitycard
:
this
.
$route
.
query
.
zjhm
,
}).
then
((
res
)
=>
{
let
loginObj
=
{
username
:
res
.
USER
.
username
,
password
:
atob
(
res
.
USER
.
password
),
}
this
.
$store
.
commit
(
"user/SET_LoginForm"
,
loginObj
);
window
.
localStorage
.
setItem
(
"user"
,
JSON
.
stringify
(
res
.
USER
));
this
.
userInfos
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"user"
))
||
""
;
this
.
$store
.
commit
(
"user/SET_UserInfo"
,
this
.
userInfos
);
...
...
@@ -4405,7 +4410,7 @@ export default {
window
.
open
(
'http://26.3.13.120:1004/#/jumplogin?idcard='
+
idcard
,
'_blank'
);
}
else
if
(
item
.
id
==
"7"
)
{
window
.
open
(
`http://26.3.13.120:9007/shiro/login?username=
${
this
.
loginForm
.
username
}
&password=
${
this
.
loginForm
.
password
}
`
,
`http://26.3.13.120:9007/shiro/login?username=
${
this
.
loginForm
.
username
}
&password=
${
encodeURIComponent
(
this
.
loginForm
.
password
)
}
`
,
"_blank"
);
}
else
if
(
item
.
id
==
"8"
)
{
...
...
src/views/login/login.vue
View file @
4607d7f0
...
...
@@ -659,7 +659,6 @@ export default {
let
navList
=
res
.
USER
.
permissions
.
split
(
","
);
res
.
USER
.
permissions
=
navList
;
Cookies
.
set
(
"userMy"
,
""
);
debugger
;
this
.
$store
.
commit
(
"user/SET_LoginForm"
,
this
.
loginForm
);
if
(
JSON
.
stringify
(
res
)
!==
"{}"
)
{
Cookies
.
set
(
"JSESSIONID"
,
res
.
JSESSIONID
,
{
...
...
@@ -746,8 +745,11 @@ export default {
let
navList
=
res
.
data
.
USER
.
permissions
.
split
(
","
);
res
.
data
.
USER
.
permissions
=
navList
;
Cookies
.
set
(
"userMy"
,
""
);
debugger
;
this
.
$store
.
commit
(
"user/SET_LoginForm"
,
this
.
loginForm
);
let
loginObj
=
{
username
:
res
.
data
.
USER
.
username
,
password
:
atob
(
res
.
data
.
USER
.
password
),
}
this
.
$store
.
commit
(
"user/SET_LoginForm"
,
loginObj
);
if
(
JSON
.
stringify
(
res
)
!==
"{}"
)
{
Cookies
.
set
(
"JSESSIONID"
,
res
.
JSESSIONID
,
{
expires
:
this
.
_expires
*
(
30
*
1000
),
...
...
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