mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-13 07:20:27 +08:00
fix(user): bug
- 通过 `用户管理` 修改头像后,切换到 `个人信息` 时头像不同步。
This commit is contained in:
@@ -184,6 +184,11 @@ onMounted(() => {
|
||||
fetchUserInfo()
|
||||
}
|
||||
})
|
||||
|
||||
// 监听 localStorage 中的头像变化
|
||||
watch(() => store.state.auth.avatar, () => {
|
||||
nowAvatar.value = store.state.auth.avatar
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user