修改bug

This commit is contained in:
‘937886381’
2024-07-05 14:06:15 +08:00
parent a7e89fe7e8
commit 3e025020ab
20 changed files with 258 additions and 137 deletions

View File

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