token改成12小时失效
This commit is contained in:
parent
be971b7112
commit
8f6ef3d8f9
|
@ -2,7 +2,7 @@
|
|||
* @Author: hisense.wuhongjian
|
||||
* @Date: 2022-03-29 17:48:03
|
||||
* @LastEditors: Light
|
||||
* @LastEditTime: 2022-10-10 16:52:10
|
||||
* @LastEditTime: 2022-10-10 16:56:17
|
||||
* @Description: 告诉大家这是什么
|
||||
*/
|
||||
import { storage, tokenTableName } from '@/config'
|
||||
|
@ -42,7 +42,7 @@ export function setAccessToken(accessToken) {
|
|||
} else if ('sessionStorage' === storage) {
|
||||
return sessionStorage.setItem(tokenTableName, accessToken)
|
||||
} else if ('cookie' === storage) {
|
||||
let expires = new Date(new Date() * 1 + 2 * 60 * 60 * 1000)
|
||||
let expires = new Date(new Date() * 1 + 12 * 60 * 60 * 1000)
|
||||
return cookie.set(tokenTableName, accessToken, { expires: expires })
|
||||
// return cookie.set(tokenTableName, '213124123412341234')
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue