diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 978c630..38eed5f 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -18,7 +18,35 @@ export default { levelList: null } }, + computed: { + changeColor() { + if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main') { + return true + } else { + return false + } + }, + }, watch: { + // changeColor(val) { + // if (val == true) { + // var tag = document.getElementsByClassName("breadcrumb-container") + // console.log('tag', tag) + // // for (let i in tag) { + // tag[i].style.color = 'rgba(255, 255, 255, 0.45)' + // // tag[i].classList.remove("default") + // // } + // // console.log('this.$refs.scrollContainer', this.$refs.tag); + // } else { + // var tag = document.getElementsByClassName("breadcrumb-container") + // console.log('tag', tag) + // for (let i in tag) { + // tag[i].style.color = '' + // // tag[i].classList.remove("default") + // } + // // this.$refs.mainContainer.style.backgroundColor = '' + // } + // }, $route(route) { // if you go to the redirect page, do not update the breadcrumbs if (route.path.startsWith('/redirect/')) { diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 08d2a83..7b9f536 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,5 +1,5 @@