提交 2ada3cf7 编写于 作者: View Design's avatar View Design

Update user.js

上级 bf39e129
......@@ -20,6 +20,7 @@ export const useUserStore = defineStore('user', () => {
}
async function $updateUserInfo () {
if (!token.value) return
const { data } = await useRequest('/v1/user/user_info')
userInfo.value = JSON.stringify(data.value.data)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册