Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
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
吴迪
gs1-admin
Commits
e7ff6004
Commit
e7ff6004
authored
Jan 16, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug提交
parent
8726b9b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
src/utils/index.js
+2
-2
No files found.
src/utils/index.js
View file @
e7ff6004
...
@@ -16,7 +16,7 @@ export function getUUID () {
...
@@ -16,7 +16,7 @@ export function getUUID () {
* @param {*} key
* @param {*} key
*/
*/
export
function
isAuth
(
key
)
{
export
function
isAuth
(
key
)
{
return
JSON
.
parse
(
session
Storage
.
getItem
(
'permissions'
)
||
'[]'
).
indexOf
(
key
)
!==
-
1
||
false
return
JSON
.
parse
(
local
Storage
.
getItem
(
'permissions'
)
||
'[]'
).
indexOf
(
key
)
!==
-
1
||
false
}
}
/**
/**
...
@@ -52,7 +52,7 @@ export function treeDataTranslate (data, id = 'id', pid = 'parentId') {
...
@@ -52,7 +52,7 @@ export function treeDataTranslate (data, id = 'id', pid = 'parentId') {
* 清除登录信息
* 清除登录信息
*/
*/
export
function
clearLoginInfo
()
{
export
function
clearLoginInfo
()
{
session
Storage
.
removeItem
(
'token'
)
local
Storage
.
removeItem
(
'token'
)
store
.
commit
(
'resetStore'
)
store
.
commit
(
'resetStore'
)
router
.
options
.
isAddDynamicMenuRoutes
=
false
router
.
options
.
isAddDynamicMenuRoutes
=
false
}
}
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