canal-admin init

This commit is contained in:
mcy
2019-07-10 16:22:38 +08:00
parent b43043f4e4
commit e87a0c3b63
123 changed files with 20234 additions and 0 deletions

View File

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