feat(nsti): add nicotine personality test flow (#36)
* fix: polish logs filter and stats money display * fix: align floating tabs on logs and stats * feat: enhance user profile and achievement features - Add functionality for users to update their profile picture and nickname - Implement achievement theme selection in onboarding - Update API integration for profile updates and achievement themes - Refine UI elements for better user interaction and experience * feat: 梦想清单页与戒烟相关 API - 梦想清单:系统导航栏、浮动添加、图标来自后台预设 - dream-presets API、pages.json 导航样式 Made-with: Cursor * feat(nsti): add nicotine personality test flow
This commit is contained in:
@@ -23,6 +23,11 @@ export const useUserStore = defineStore('user', {
|
||||
storage.set(USER_MODE_KEY, mode)
|
||||
},
|
||||
|
||||
updateUser(fields) {
|
||||
this.user = { ...this.user, ...fields }
|
||||
storage.set(USER_KEY, this.user)
|
||||
},
|
||||
|
||||
logout() {
|
||||
this.user = null
|
||||
this.sessionKey = null
|
||||
|
||||
Reference in New Issue
Block a user