gree_leran/utils/Auth.js

14 lines
233 B
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
var Admin = "rds-token"
2024-06-16 01:04:56 +00:00
export function setToken(token){
uni.setStorageSync(Admin,token)
}
export function getToken(){
return uni.getStorageSync(Admin)
}
export function isLogin(){
return uni.getStorageSync(Admin)?true:false
}