init():南钢程序前后端分离

This commit is contained in:
Allenxy
2024-09-13 16:10:08 +08:00
parent 4c5f5493a5
commit fc11668842
718 changed files with 67569 additions and 0 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)
}