refactor: ♻️ 我的页面重构

This commit is contained in:
ray
2024-10-15 08:31:03 +08:00
parent 3dec53af38
commit c21b15d793
22 changed files with 6888 additions and 5319 deletions

View File

@@ -1,19 +0,0 @@
const TOKEN_KEY = "app-token";
function getToken(): string {
return uni.getStorageSync(TOKEN_KEY) || "";
}
function setToken(token: string) {
return uni.setStorageSync(TOKEN_KEY, token);
}
function clearToken() {
return uni.removeStorageSync(TOKEN_KEY);
}
function isLogin(): boolean {
return !!getToken();
}
export { getToken, setToken, clearToken, isLogin };