更新 src/views/login/index.vue

This commit is contained in:
mkm 2023-09-16 14:01:30 +08:00
parent 990ae7e230
commit 78d7ece20e

View File

@ -211,7 +211,7 @@ const handleSubmit = async (e: Event) => {
username,
password
})
if(res && res.data) {
if(res && res.data &&res.data.token) {
const { tokenValue, tokenName } = res.data.token
const { nickname, username, id } = res.data.userinfo