From 0b2357a173a2bc52f3532bfcf93ff31daf226231 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Wed, 06 Sep 2023 14:44:23 +0800
Subject: [PATCH] 导航栏退出登录
---
pages/tabBar/firstPage/firstPage.vue | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/pages/tabBar/firstPage/firstPage.vue b/pages/tabBar/firstPage/firstPage.vue
index b85ba58..aa771bc 100644
--- a/pages/tabBar/firstPage/firstPage.vue
+++ b/pages/tabBar/firstPage/firstPage.vue
@@ -7,6 +7,9 @@
<!-- 真正的导航栏内容 -->
<view class="navBar">
<view class="barText">首页</view>
+ <view >
+ <u-button type="text" @click="loginOut" style="color: blue;margin-right: 5px;">退出</u-button>
+ </view>
</view>
</view>
<view class="list">
@@ -110,6 +113,13 @@
this.getNum();
},
methods: {
+ loginOut() {
+ uni.clearStorageSync();
+ uni.clearStorage();
+ uni.navigateTo({
+ url: '/pages/index/index'
+ })
+ },
getNum(){
this.data.searchParams.reviewStatus = 1;
getExamine(this.data).then(res => {
--
Gitblit v1.9.2