Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gavel-erp-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
李苏
gavel-erp-vue
Commits
d7634491
Commit
d7634491
authored
May 20, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判定调整
parent
92d9a25c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
auth.js
src/utils/auth.js
+3
-2
No files found.
src/utils/auth.js
View file @
d7634491
...
@@ -3,7 +3,8 @@ import Cookies from 'js-cookie'
...
@@ -3,7 +3,8 @@ import Cookies from 'js-cookie'
const
TokenKey
=
'token'
const
TokenKey
=
'token'
export
function
getToken
()
{
export
function
getToken
()
{
return
Cookies
.
get
(
TokenKey
)
// return Cookies.get(TokenKey)
return
localStorage
.
getItem
(
'Gtoken'
)
}
}
export
function
setToken
(
token
)
{
export
function
setToken
(
token
)
{
...
@@ -19,4 +20,4 @@ export function setUserid(userid) {
...
@@ -19,4 +20,4 @@ export function setUserid(userid) {
}
}
export
function
getUserid
(
userid
)
{
export
function
getUserid
(
userid
)
{
return
Cookies
.
get
(
'userid'
)
return
Cookies
.
get
(
'userid'
)
}
}
\ No newline at end of file
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