diff --git a/app.vue b/app.vue
index 1e01a95184359bed0c1d2252664a59052f0cab05..6a0956c9c20cef07bd8c465aa576a4d0bd55b02d 100644
--- a/app.vue
+++ b/app.vue
@@ -7,7 +7,11 @@
diff --git a/stores/user.js b/stores/user.js
index 70b78b8230851495498661b821f1c751dfae1361..e995231131ec37b03360260a5beb3bca823435d2 100644
--- a/stores/user.js
+++ b/stores/user.js
@@ -19,5 +19,10 @@ export const useUserStore = defineStore('user', () => {
userInfo.value = null
}
- return { $info, $isSignIn, $signOut }
+ async function $updateUserInfo () {
+ const { data } = await useRequest('/v1/user/user_info')
+ userInfo.value = JSON.stringify(data.value.data)
+ }
+
+ return { $info, $isSignIn, $signOut, $updateUserInfo }
})