feat: rating

This commit is contained in:
zzc
2026-06-15 00:15:23 +08:00
parent 26d3536cdf
commit 179abe01b0
6 changed files with 1016 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ export const useUserStore = defineStore("user", {
this.userInfo = {};
uni.removeStorageSync("token");
uni.removeStorageSync("userInfo");
uni.removeTabBarBadge({ index: 3 });
uni.hideTabBarRedDot({ index: 3 });
},
loadUserInfo() {
const userStr = uni.getStorageSync("userInfo");
@@ -83,6 +85,8 @@ export const useUserStore = defineStore("user", {
this.token = "";
uni.removeStorageSync("userInfo");
uni.removeStorageSync("token");
uni.removeTabBarBadge({ index: 3 });
uni.hideTabBarRedDot({ index: 3 });
},
},
});