liuchengxin
2022-01-08 cf1b5bf548b870efd0f1b4e3d5a8f88e79cfd9c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Cookies from 'js-cookie'
 
const TokenKey = 'Admin-Token'
 
export function getToken() {
  return Cookies.get(TokenKey)
}
 
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
 
export function removeToken() {
  return Cookies.remove(TokenKey)
}