服装智能制造软件平台V3.0 http://182.92.169.222/hhxy/#/user/login
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
360 B

/**
* 弃用
*/
import { setStore, getStore, clearStore } from "@/utils/storage"
export const TokenKey = 'Access-Token'
export function getToken() {
return getStore(TokenKey)
}
export function setToken(token) {
// key, token, timeout = 86400s
return setStore(TokenKey, token, 86400)
}
export function removeToken() {
return clearStore(TokenKey)
}