function isLogin() { if (uni.getStorageSync('token')) { return true; } else { return false; } } module.exports = { isLogin };