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

Loading…
Cancel
Save