退出登录问题

This commit is contained in:
朱浩 2024-12-20 09:42:28 +08:00
parent 7751692061
commit 0ab34e7aa3
1 changed files with 3 additions and 3 deletions

View File

@ -57,9 +57,9 @@ import { ref, watch , reactive, onMounted, onBeforeMount, computed} from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { ElMessageBox, ElMessage } from 'element-plus' import { ElMessageBox, ElMessage } from 'element-plus'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import { sessionStore } from '@/utils/store'
import pkc from "../../../../../package.json" import pkc from "../../../../../package.json"
import defaultUserImg from '@/assets/images/img-avatar.png' import defaultUserImg from '@/assets/images/img-avatar.png'
import { sessionStore } from '@/utils/store'
const { ipcRenderer } = window.electron || {} const { ipcRenderer } = window.electron || {}
@ -183,7 +183,7 @@ watch(
const logout = () => { const logout = () => {
if(!!sessionstore.get('curr.classcourse'))return ElMessage.warning('当前正在上课,请先结束上课') if(!!sessionStore.get('curr.classcourse'))return ElMessage.warning('当前正在上课,请先结束上课')
ElMessageBox.confirm('确认退出系统吗?', '提示', { ElMessageBox.confirm('确认退出系统吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -212,7 +212,7 @@ onMounted(() => {
</script> </script>
<style lang="scss"> <style lang="scss">
.el-popover.popoverStyle{ .el-popover.popoverStyle{
min-width:120px; min-width:120px;
padding: 0; padding: 0;
} }