Skip to content

Commit

Permalink
fix: 登录接口报错的时候未能正确提示
Browse files Browse the repository at this point in the history
  • Loading branch information
sl1673495 committed Aug 15, 2019
1 parent 865de25 commit 278145d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/user/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
const { profile } = user
commit('setUser', profile)
storage.set(UID_KEY, profile.userId)
} catch (error) {
} catch (e) {
return error()
}

Expand All @@ -31,4 +31,4 @@ export default {
commit('setUserPlaylist', [])
storage.set(UID_KEY, null)
}
}
}

0 comments on commit 278145d

Please sign in to comment.