更新 src/views/login/index.vue
This commit is contained in:
parent
990ae7e230
commit
78d7ece20e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user