Skip to content

Commit

Permalink
fix: get userinfo error
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-astar committed Jun 28, 2021
1 parent 2ee4b95 commit 0d39e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: astar
* @Date: 2020-09-15 18:19:35
* @LastEditors: astar
* @LastEditTime: 2021-06-28 20:14:15
* @LastEditTime: 2021-06-28 20:17:37
* @Description: 文件描述
* @FilePath: \vue-chat\src\store\modules\user.js
*/
Expand All @@ -18,7 +18,7 @@ const user = {
if (res.data) {
commit('SET_USER_INFO', res.data);
} else {
Promise.reject()
return Promise.reject(res.msg)
}
})
}
Expand Down

0 comments on commit 0d39e3f

Please sign in to comment.