d3a3e7c093e44ca4a5a45e16727ff377da89341e.svn-base 299 B

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