From 061a67a5e85bc89af9a3c1aa384285a40d2c9d88 Mon Sep 17 00:00:00 2001 From: yuk255 Date: Fri, 19 Sep 2025 10:59:17 +0800 Subject: [PATCH] =?UTF-8?q?style:=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E9=AB=98=E5=BA=A6=E6=BA=A2=E5=87=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E5=A4=8D=E8=AF=BE=E4=BB=B6=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=9D=A1=E5=B1=82=E7=BA=A7=E8=BF=87=E9=AB=98=EF=BC=8C=E6=B5=AE?= =?UTF-8?q?=E5=8A=A8=E5=9C=A8nav=E4=B8=8A=E9=83=A8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/teacher/AdminDashboard.vue | 26 +++++++++++++++++----- src/views/teacher/course/CourseEditor.vue | 8 +++++++ src/views/teacher/course/FileViewer.vue | 5 ++--- src/views/teacher/course/FolderBrowser.vue | 14 +++--------- 4 files changed, 34 insertions(+), 19 deletions(-) diff --git a/src/views/teacher/AdminDashboard.vue b/src/views/teacher/AdminDashboard.vue index e6b07ab..3ea928c 100644 --- a/src/views/teacher/AdminDashboard.vue +++ b/src/views/teacher/AdminDashboard.vue @@ -191,6 +191,11 @@ const setActiveNavItem = (index: number) => { // 考试管理菜单切换 const toggleExamMenu = () => { + // 如果当前菜单要展开,先关闭其他菜单 + if (!examMenuExpanded.value) { + studentMenuExpanded.value = false; + } + examMenuExpanded.value = !examMenuExpanded.value; activeNavItem.value = 4; @@ -202,6 +207,11 @@ const toggleExamMenu = () => { // 学员中心菜单切换 const toggleStudentMenu = (path: string) => { + // 如果当前菜单要展开,先关闭其他菜单 + if (!studentMenuExpanded.value) { + examMenuExpanded.value = false; + } + studentMenuExpanded.value = !studentMenuExpanded.value; activeNavItem.value = 1; @@ -727,6 +737,10 @@ const updateActiveNavItem = () => {