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