Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jul 12, 2023
1 parent 3804424 commit b566145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/app/navbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useSession } from '~/store/session'
const scrollY = useScrollYObserver()
const session = useSession()
// const $route = useRoute()
const searchModalWrapper = shallowRef<{
searchModal: {
Expand Down
8 changes: 8 additions & 0 deletions src/store/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,13 @@ export const useSession = defineStore('session', {
return false
}
},
setAvatarTimestamp() {
if (!this.user) {
return
}

this.user.avatarSrc = `${this.user.avatarSrc}?${Date.now()}`
},
},

})

0 comments on commit b566145

Please sign in to comment.