fix:个人中心修改信息后,左侧没变化

This commit is contained in:
YunaiV
2025-05-12 21:15:26 +08:00
parent 02d284bced
commit 2b44f1d6dc
3 changed files with 22 additions and 2 deletions

View File

@@ -60,6 +60,12 @@ const getUserInfo = async () => {
const users = await getUserProfile()
userInfo.value = users
}
// 暴露刷新方法
defineExpose({
refresh: getUserInfo
})
onMounted(async () => {
await getUserInfo()
})