diff --git a/src/main/store.js b/src/main/store.js index 5cc0f1c..a34bd90 100644 --- a/src/main/store.js +++ b/src/main/store.js @@ -13,6 +13,7 @@ const defaultData = { showBoardAll: false, // 全屏画板-是否显示 isPdfWin: false, // pdf窗口是否打开 isToolWin: false, // 工具窗口是否打开 + isTaskWin: false, // 批改窗口是否打开 curSubjectNode: { querySearch: {} // 查询资源所需参数 }, diff --git a/src/renderer/src/assets/images/logo.png b/src/renderer/src/assets/images/logo.png index 45f6e65..f21ff02 100644 Binary files a/src/renderer/src/assets/images/logo.png and b/src/renderer/src/assets/images/logo.png differ diff --git a/src/renderer/src/components/set-homework/index.vue b/src/renderer/src/components/set-homework/index.vue index 56b42a7..380e381 100644 --- a/src/renderer/src/components/set-homework/index.vue +++ b/src/renderer/src/components/set-homework/index.vue @@ -276,6 +276,7 @@ const cloneDialog = (formEl) => { expandedKeys.value = [] formEl.resetFields() model.value = false + emit('on-close') } onMounted(() => { diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index e85f48f..2d813af 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -80,9 +80,7 @@ import { updateUserInfo } from '@/api/system/user' import logoIco from '@/assets/images/logo.png' import { listEvaluation } from '@/api/classManage/index' import { sessionStore } from '@/utils/store' -import { useToolState } from '@/store/modules/tool' -const toolState = useToolState(); let homeTitle = ref(import.meta.env.VITE_APP_TITLE) const { ipcRenderer } = window.electron || {} const userStore = useUserStore() @@ -153,7 +151,8 @@ function handleCommand(command) { function logout() { const hasClass = sessionStore.has('activeClass.id') - if (hasClass || toolState.isToolWin) return ElMessage.warning('当前正在上课,请先结结束上课') + const hasTool = sessionStore.get('isToolWin') + if (hasClass || hasTool) return ElMessage.warning('当前正在上课,请先结束上课') ElMessageBox.confirm('确认退出系统吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', diff --git a/src/renderer/src/layout/index.vue b/src/renderer/src/layout/index.vue index 642e362..09b8df4 100644 --- a/src/renderer/src/layout/index.vue +++ b/src/renderer/src/layout/index.vue @@ -4,14 +4,7 @@
- - + @@ -19,32 +12,16 @@