quanyawei
2023-10-25 3d47b03fb107e73f96b631c98ba1e275576da064
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Cookies from 'js-cookie'
 
const TokenKey = 'vue_admin_template_token'
 
export function getToken() {
  return Cookies.get(TokenKey)
}
 
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
 
export function removeToken() {
  return Cookies.remove(TokenKey)
}