初始化项目

This commit is contained in:
zx
2026-03-09 15:02:47 +08:00
commit 97b070a1a4
274 changed files with 24365 additions and 0 deletions

15
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)
}