添加前端基本功能

This commit is contained in:
kerwincui
2021-05-10 11:47:48 +08:00
parent 9736630b40
commit bdab3b38ad
262 changed files with 22883 additions and 0 deletions

15
vue/src/utils/auth.js Normal file
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)
}