gree_leran/utils/Auth.js

14 lines
233 B
JavaScript

var Admin = "rds-token"
export function setToken(token){
uni.setStorageSync(Admin,token)
}
export function getToken(){
return uni.getStorageSync(Admin)
}
export function isLogin(){
return uni.getStorageSync(Admin)?true:false
}