Commit 55ba1fa5 authored by 肖健's avatar 肖健

退出登录对接

parent b67af841
......@@ -117,9 +117,17 @@ export default {
},
methods: {
loginOut(){
uni.navigateTo({
let opts = { url: '/logout', method: 'post' };
this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) {
uni.removeStorageSync('userToken')
uni.navigateTo({
url: '/pages/binding/index'
});
});
}
})
},
goOrder(current) {
uni.navigateTo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment