|
|
@ -120,6 +120,7 @@ const onSubmit = async ({ validateResult, firstError }) => { |
|
|
|
accountStore.updateUsername(res?.data?.username) |
|
|
|
accountStore.updateRole(res?.data.authorities[0]?.authority) |
|
|
|
Cookie.setCookie('t', res?.data?.token) |
|
|
|
Cookie.setCookie('u', res?.data?.username) |
|
|
|
Cookie.setCookie('r', res?.data.authorities[0]?.authority) |
|
|
|
window.location.href = '/' |
|
|
|
} else { |
|
|
|