修改bug
This commit is contained in:
@@ -39,6 +39,13 @@ export default {
|
||||
needTagsView: state => state.settings.tagsView,
|
||||
fixedHeader: state => state.settings.fixedHeader
|
||||
}),
|
||||
changeColor() {
|
||||
if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main') {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
classObj() {
|
||||
return {
|
||||
hideSidebar: !this.sidebar.opened,
|
||||
@@ -51,6 +58,21 @@ export default {
|
||||
return variables;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// changeColor(val) {
|
||||
// if (val == true) {
|
||||
// var tag = document.getElementsByClassName("main-container")
|
||||
// console.log('tag', tag);
|
||||
// tag.style.backgroundColor = 'rgba(0, 21, 41, 1)'
|
||||
// } else {
|
||||
// var tag = document.getElementsByClassName("main-container")
|
||||
// // for (let i in tag) {
|
||||
// tag.style.backgroundColor = ''
|
||||
// // tag[i].classList.add("default")
|
||||
// // }
|
||||
// }
|
||||
// },
|
||||
},
|
||||
methods: {
|
||||
handleClickOutside() {
|
||||
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
|
||||
|
||||
Reference in New Issue
Block a user