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