Commit e7ff6004 by Lyan

bug提交

parent 8726b9b1
......@@ -16,7 +16,7 @@ export function getUUID () {
* @param {*} key
*/
export function isAuth (key) {
return JSON.parse(sessionStorage.getItem('permissions') || '[]').indexOf(key) !== -1 || false
return JSON.parse(localStorage.getItem('permissions') || '[]').indexOf(key) !== -1 || false
}
/**
......@@ -52,7 +52,7 @@ export function treeDataTranslate (data, id = 'id', pid = 'parentId') {
* 清除登录信息
*/
export function clearLoginInfo () {
sessionStorage.removeItem('token')
localStorage.removeItem('token')
store.commit('resetStore')
router.options.isAddDynamicMenuRoutes = false
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment