diff --git a/src/views/register/register.vue b/src/views/register/register.vue index ad3becf..9c05bfd 100644 --- a/src/views/register/register.vue +++ b/src/views/register/register.vue @@ -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('/')