This commit is contained in:
‘937886381’
2024-07-05 16:33:14 +08:00
parent 44f3ab3e99
commit 865698a9be
5 changed files with 141 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="navbar">
<div ref="navbar" class="navbar">
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container"
@toggleClick="toggleSideBar" />
@@ -41,6 +41,13 @@ export default {
'nickname',
'device'
]),
changeColor() {
if (this.$route.path == '/copilot/efficiency-container' || this.$route.path == '/copilot/main') {
return true
} else {
return false
}
},
setting: {
get() {
return this.$store.state.settings.showSettings
@@ -58,6 +65,18 @@ export default {
}
}
},
watch: {
// changeColor(val) {
// if (val == true) {
// // console.log('this.$refs.mainContainer', this.$refs.mainContainer);
// this.$refs.navbar.style.backgroundColor = 'rgba(0, 21, 41, 1)'
// this.$refs.navbar.style.boxShadow = '0px 1px 8px 0px rgba(0,131,255,0.35)'
// } else {
// this.$refs.navbar.style.backgroundColor = ''
// this.$refs.navbar.style.boxShadow = ''
// }
// },
},
methods: {
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')