h5/pages/login/login.vue @@ -45,6 +45,7 @@ password: this.from.password, username: this.from.account }).then(async(res) => { alert(10) this.$store.commit('setToken', res.data) let user = await getUserInfo() this.$store.commit('setUser', user.data)