diff --git a/pages/login/login.vue b/pages/login/login.vue index afa5cdb..a92022f 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -96,7 +96,7 @@ this.$store.dispatch('delLoginName', '') } this.$store.dispatch('saveUserInfo', JSON.stringify(res.data.user)) - this.$store.dispatch('saveToken', res.token) + this.$store.dispatch('saveToken', res.data.token) uni.redirectTo({ url: '/pages/home/home' })