first commit

This commit is contained in:
izory
2021-08-23 16:57:25 +08:00
commit 1845017b67
480 changed files with 37611 additions and 0 deletions

17
ZR.Vue/src/utils/auth.js Normal file
View File

@@ -0,0 +1,17 @@
import Cookies from 'js-cookie'
const TokenKey = 'ZR-Token'
export function getToken() {
return Cookies.get(TokenKey)
}
export function setToken(token) {
console.log('set token=' + token)
return Cookies.set(TokenKey, token)
}
export function removeToken() {
return Cookies.remove(TokenKey)
}