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 @@
- -