Initial project commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export const checkLogin = () => {
|
||||
const token = uni.getStorageSync("access_token");
|
||||
if (!token) {
|
||||
uni.showToast({ title: "请先登录", icon: "none" });
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({ url: "/pages/login/index" });
|
||||
}, 300);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
Reference in New Issue
Block a user