This commit is contained in:
cxa
2019-04-03 16:32:35 +08:00
parent 37f5889b09
commit df43a7fc96
124 changed files with 26428 additions and 20 deletions

View File

@@ -0,0 +1,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)
}