Blame view
src/utils/auth.js
284 Bytes
80a28914e init |
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) } |