Skip to content

Commit

Permalink
fix:修复注册存储数据的参数错误问题 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
anguoo authored Feb 13, 2024
1 parent bfb5afa commit 7c17bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/register/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const register = () => {
password: password.value,
})
.then((res: any) => {
store.setUserSessionToken(res.shortToken, res.longToken)
store.setUserSession(res.shortToken, res.longToken, res.userId)
successMsg('注册成功')
router.push('/')
Expand Down

0 comments on commit 7c17bd9

Please sign in to comment.