Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dxgaqgl-vue
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
李苏
dxgaqgl-vue
Commits
d98091f9
Commit
d98091f9
authored
Aug 22, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不用session 和免登生命周期逻辑冲突
parent
1dca486c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
user.js
src/store/modules/user.js
+2
-0
index.vue
src/views/threeViolations/homePage/index.vue
+2
-2
No files found.
src/store/modules/user.js
View file @
d98091f9
...
...
@@ -48,6 +48,8 @@ const user = {
sessionStorage
.
setItem
(
'allUserInfo'
,
JSON
.
stringify
(
res
.
data
))
localStorage
.
setItem
(
'username'
,
res
.
data
.
username
)
localStorage
.
setItem
(
'userid'
,
res
.
data
.
userid
)
localStorage
.
setItem
(
'allUserInfo'
,
JSON
.
stringify
(
res
.
data
))
/* 存储本地一份 */
setToken
(
res
.
data
.
token
)
commit
(
'SET_TOKEN'
,
res
.
data
.
token
)
...
...
src/views/threeViolations/homePage/index.vue
View file @
d98091f9
...
...
@@ -265,8 +265,8 @@
}
from
'@/api/home/homepage.js'
import
ryqno
from
'@/assets/images/ryqno.png'
var
allUserInfo
=
JSON
.
parse
(
session
Storage
.
getItem
(
'allUserInfo'
));
console
.
log
(
allUserInfo
,
'allUserInfo'
)
var
allUserInfo
=
JSON
.
parse
(
local
Storage
.
getItem
(
'allUserInfo'
));
export
default
{
...
...
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