修改样式
This commit is contained in:
@@ -87,7 +87,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 退出登录 -->
|
<!-- 退出登录 -->
|
||||||
<button type="primary" plain="true" size="small" class="logout-btn" @click="showModel">退出登录</button>
|
<button type="primary" plain="true" size="small" class="logout-btn" @click="handleLoginOut">退出登录</button>
|
||||||
|
|
||||||
<!-- 底部加高度来避免tabbar遮挡 -->
|
<!-- 底部加高度来避免tabbar遮挡 -->
|
||||||
<!-- <view class="bottom-height"></view> -->
|
<!-- <view class="bottom-height"></view> -->
|
||||||
@@ -95,14 +95,14 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 弹窗模板 -->
|
<!-- 弹窗模板 -->
|
||||||
<customShowModal
|
<!-- <customShowModal
|
||||||
:title="title"
|
:title="title"
|
||||||
:content="content"
|
:content="content"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
@confirm="handleLoginOut"
|
@confirm="handleLoginOut"
|
||||||
ref="showModel"
|
ref="showModel"
|
||||||
></customShowModal>
|
></customShowModal> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -222,12 +222,12 @@ const handleClose=()=>{
|
|||||||
// 3.退出登录
|
// 3.退出登录
|
||||||
const handleLoginOut = async ()=>{
|
const handleLoginOut = async ()=>{
|
||||||
|
|
||||||
// showAlert('是否确认退出?','提示',true,()=>{
|
showAlert('是否确认退出?','提示',true,()=>{
|
||||||
userStore.logout();
|
userStore.logout();
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/login',
|
url: '/pages/login/login',
|
||||||
});
|
});
|
||||||
// })
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user