initial commit

This commit is contained in:
simple321vip
2022-04-03 23:43:45 +08:00
commit ef1c97251d
42 changed files with 2628 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import Cookies from 'js-cookie'
const getToken = () => {
const token = Cookies.get('token')
return token
}
const setToken = (token: String) => {
Cookies.set('token', token)
}
const resetToken = (token: String) => {
Cookies.set('token', "")
}
export { getToken, setToken, resetToken }