export const TOKEN_KEY : string = 'token' export const USER_INFO_KEY : string = 'userInfo' export function isLogin() : boolean { const token = uni.getStorageSync(TOKEN_KEY) if (token == null) { return false } return (token as string).length > 0 } export function getToken() : string { const token = uni.getStorageSync(TOKEN_KEY) if (token == null) { return '' } return token as string }