This commit is contained in:
zmj 2024-07-04 18:00:16 +08:00
parent a14cf624da
commit 6a1bdddf37
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@
}).then(res => { }).then(res => {
// token // token
userStore.setUserInfo(res.data); userStore.setUserInfo(res.data);
userStore.setToken(res.data.token); res.data.token && userStore.setToken(res.data.token);
// //
if (res.is_staff == 1) { if (res.is_staff == 1) {
userStore.setUserInfo(res.data); userStore.setUserInfo(res.data);