From 94276db542173f047a39e28f4c1defba2455d298 Mon Sep 17 00:00:00 2001 From: lyc Date: Thu, 19 Dec 2024 16:55:37 +0800 Subject: [PATCH] edit --- src/renderer/src/layout/components/Aside.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index 7a421c6..3c6456f 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -182,9 +182,9 @@ watch( const logout = () => { - const hasClass = sessionStore.has('activeClass.id') - const hasTool = sessionStore.get('isToolWin') - if (hasClass || hasTool) return ElMessage.warning('当前正在上课,请先结束上课') + + if(!!sessionstore.get('curr.classcourse'))return ElMessage.warning('当前正在上课,请先结束上课') + ElMessageBox.confirm('确认退出系统吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -212,7 +212,7 @@ onMounted(() => {