add login out
This commit is contained in:
parent
959afc776a
commit
64da585bd7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user