From dad772713fac6919241bdba9ae5211e57fe25f34 Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 11 Dec 2024 17:04:12 +0800 Subject: [PATCH] edit --- src/renderer/src/layout/components/Header.vue | 6 +++--- src/renderer/src/layout/index.vue | 8 +++---- src/renderer/src/router/index.js | 21 +++++++------------ .../src/views/classTask/classTask.vue | 1 - .../src/views/classTask/newClassTask.vue | 1 - src/renderer/src/views/teach/index.vue | 13 ------------ .../views/teach/standardAnalysis/index.vue | 1 - .../src/views/textbookAnalysis/index.vue | 1 - 8 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 src/renderer/src/views/teach/index.vue diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index 9cf31b3..d993102 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -44,9 +44,9 @@ const breadList = ref([]) watch( () => router.currentRoute.value, (newValue) => { - let path = newValue.path - - if (path.includes('/model') && path !== ('/model/index')) { + console.log(newValue) + const { showBread } = newValue.meta + if (showBread) { isShowBack.value = true breadList.value = newValue.matched.map(item => item.meta) let data = sessionStore.get('subject.curNode') diff --git a/src/renderer/src/layout/index.vue b/src/renderer/src/layout/index.vue index eb99066..2b78391 100644 --- a/src/renderer/src/layout/index.vue +++ b/src/renderer/src/layout/index.vue @@ -8,8 +8,8 @@
- -