add login out

This commit is contained in:
cmxdd 2020-08-10 11:31:03 +08:00
parent 959afc776a
commit 64da585bd7

View File

@ -23,6 +23,10 @@
<text>骑手投诉</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="loginout()">
<text>退出登录</text>
<image src="/static/image/user/1.png"></image>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -41,6 +45,17 @@ export default {
this.getmyinfo()
},
methods: {
// 退
loginout(){
uni.clearStorage();
this.$refs.uToast.show({
title: "退出登陆成功!",
type: 'success'
});
uni.reLaunch({
url:"../login/login"
})
},
//
getmyinfo(){
let that = this;