Skip to content

Commit

Permalink
退出登录
Browse files Browse the repository at this point in the history
  • Loading branch information
fanmingfei committed Dec 23, 2017
1 parent 82b13e0 commit 35fee77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export async function login({ phone, password, device }) {
}

export async function logout() {
storage.removeItem('access_token')
return request({ url: `/user/logout` })
}

Expand Down

0 comments on commit 35fee77

Please sign in to comment.