From 5d5cdee83d212d0343bc7f8d538f3d5a757dd858 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Sun, 20 Sep 2026 10:03:23 +0800 Subject: [PATCH] fix: restore assistant and move exam navigation --- src/layout/components/Navbar.vue | 8 +++++++- src/layout/components/Sidebar/index.vue | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 9940ec6..484481d 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -146,10 +146,16 @@ const mentList = ref([ role: 2, activePrefix: "/admin-student", }, + { + name: "考试考核", + path: "/examination/index", + role: 4, + activePrefix: "/examination", + }, { name: "实验报告", path: "/report/index", - role: 4, + role: 4, }, { name: "BI可视化", diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 2d7be0c..8edfc2c 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -294,6 +294,7 @@ const sidebarStyle = computed(() => { }; }); const studentCourseNav = [ + { title: "AI智能助手", path: "/assistant/index", activePrefix: "/assistant" }, { title: "互联网产品开发基础", children: [ @@ -393,13 +394,14 @@ const trainingTaskKeyByPath = { "/assessment/diagnosis": "product-diagnosis-iteration", }; const studentCourseBaseNav = [ - { title: "考试考核", path: "/examination/index", activePrefix: "/examination" }, + { title: "AI智能助手", path: "/assistant/index", activePrefix: "/assistant" }, ]; const studentTaskSections = ref([]); const currentCourseNav = computed(() => (isTeacherRole.value ? filterTeacherManageNavigation(teacherManageNav) : [...studentCourseBaseNav, ...studentTaskSections.value])); const studentIconByPath = { + "/assistant/index": "MagicStick", "/comprehensive/index": "School", "/foundation/new-product-survey": "Search", "/foundation/product-development-factors": "SetUp", @@ -435,7 +437,6 @@ const studentIconByPath = { "/task-review/index": "DocumentChecked", "/score/index": "DataBoard", "/exam/index": "Finished", - "/examination/index": "Finished", }; const studentIconBySectionStart = [ { path: "/training/", icon: "Document" },