修改ui
This commit is contained in:
@@ -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/')) {
|
||||
|
||||
Reference in New Issue
Block a user