效果图:
前端页面5min无操作,弹出弹窗提示用户系统将在30s后退出,30s后系统自动退出至登录页面。
<template>
<div>
<div class="f-z-20-px">
{
{
remainTime }}秒后无操作将退出
</div>
<el-dialog
title="您长时间未操作"
v-model="dialogVisible"
:close-on-click-modal="false"
:show-close="false"
@before-close="handleLogout()"
width="600px">
<p class="f-z-20-px text-center m-b-5">
为保障您的隐私,系统将
<b class="text-primary">{
{
logoutTime }}</b>
秒后自动退出。
</p>
<template #footer>
<span>
<el-button @click="handleLogout()">手动退出</el-button>
<el-button type="primary" @click="continueAdk()">继续问诊</el-button>
</span>
</template>
</el-dialog>
<