feat: rating
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user