We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fdb014 commit 11fdd96Copy full SHA for 11fdd96
web/src/store/module/user.js
@@ -37,9 +37,9 @@ export const user = {
37
actions: {
38
async LoginIn({ commit }, loginInfo) {
39
const res = await login(loginInfo)
40
- commit('setUserInfo', res.data.user)
41
- commit('setToken', res.data.token)
42
if (res.code == 0) {
+ commit('setUserInfo', res.data.user)
+ commit('setToken', res.data.token)
43
const redirect = router.history.current.query.redirect
44
if (redirect) {
45
router.push({ path: redirect })
0 commit comments