src/pages/mine/index.vue
@@ -211,9 +211,9 @@ </view> </view> --> <!-- <view v-if="isLogin" class="logout-btn-container"> <view v-if="isLogin" class="logout-btn-container"> <wd-button class="logout-btn" @click="handleLogout">退出登录</wd-button> </view> --> </view> <wd-toast /> </view> @@ -252,6 +252,7 @@ if (res.confirm) { userStore.logout(); toast.show("已退出登录"); uni.reLaunch({ url: "/pages/login/index" }); } }, });