Browse Source

fix: 修复bug

sy-water-data-board-ui
panyuyi 2 months ago
parent
commit
2513e9dd6b
  1. 42
      src/layout/components/Navbar.vue

42
src/layout/components/Navbar.vue

@ -152,32 +152,30 @@ export default {
this.handleJump(e.value); this.handleJump(e.value);
return; return;
} }
sessionStorage.setItem('topTab', e) sessionStorage.setItem("topTab", e.value);
this.$store.dispatch('changeTopTab', e) this.$store.dispatch("changeTopTab", e.value);
console.log(e) if (e.value === "sluice") {
if (e === 'sluice') {
this.$router.replace({ this.$router.replace({
path: '/sluice/engineeringCondition/sluiceBaseInfo', path: "/sluice/engineeringCondition/sluiceBaseInfo",
query: { query: {
timestamp: new Date().getTime() timestamp: new Date().getTime(),
} },
}) });
}else if (e==='dike'){ } else if (e.value === "dike") {
this.$router.replace({ this.$router.replace({
path: '/dike/engineeringCondition/dikeBaseInfo', path: "/dike/engineeringCondition/dikeBaseInfo",
query: { query: {
timestamp: new Date().getTime() timestamp: new Date().getTime(),
} },
}) });
}else { } else {
this.$router.replace({ this.$router.replace({
path: '/', path: "/",
query: { query: {
timestamp: new Date().getTime() timestamp: new Date().getTime(),
} },
}) });
} }
}, },
toggleSideBar() { toggleSideBar() {
this.$store.dispatch("app/toggleSideBar"); this.$store.dispatch("app/toggleSideBar");
@ -204,9 +202,11 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.navbar { .navbar {
// background: #122c7d !important; // background: #122c7d !important;
background: linear-gradient(270deg, background: linear-gradient(
270deg,
rgba(61, 156, 204, 1) 1%, rgba(61, 156, 204, 1) 1%,
rgba(131, 179, 107, 1) 100%) !important; rgba(131, 179, 107, 1) 100%
) !important;
// height: 70px; // height: 70px;
height: 56px; height: 56px;
overflow: hidden; overflow: hidden;

Loading…
Cancel
Save