export default function async(redirect = true) { const id = uni.getStorageSync("id"); const token = uni.getStorageSync("token"); if (!id || !token) { redirect && uni.navigateTo({ url: "/pages/account/login", }); return false; } return true; }