uni-app 退出登录当前的小程序

exitLogin(){
            uni.removeStorageSync('token');
            uni.removeStorageSync('user');
            uni.reLaunch({
                url:"/pages/mainview/tap/tap"
            })
        },
<view class="bottom" @click.stop="show = true">
    <view class="btu">退出登录</view>
</view>
<!-- 退出弹窗 -->
<u-modal v-model="show" :content="content" :title="title" :show-cancel-button="true" confirm-color="#F12516"  @confirm="exitLogin"></u-modal>

 

posted @ 2021-06-05 15:32  温柔本肉  阅读(3103)  评论(0编辑  收藏  举报