Browse Source

Merge pull request '修改侧边栏滚动效果' (#55) from zq-breadcrumb into master

Reviewed-on: #55
zq-ui
zhangqi 1 week ago
parent
commit
a8885a79c3
  1. 5
      src/components/SetLeftMenu.vue
  2. 1
      src/router/index.js

5
src/components/SetLeftMenu.vue

@ -205,7 +205,10 @@ export default {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px 0px 11px 2px rgba(147, 147, 147, 0.11); box-shadow: 0px 0px 11px 2px rgba(147, 147, 147, 0.11);
} }
ul{
height: 100%;
overflow-y: auto;
}
.ceshi { .ceshi {
// animation: fadeInOut 2s infinite; // animation: fadeInOut 2s infinite;
} }

1
src/router/index.js

@ -353,6 +353,7 @@ router.beforeEach((to, from, next) => {
store.commit('SET_SIDEBAR', false); // 黑名单内页面不显示侧边栏 store.commit('SET_SIDEBAR', false); // 黑名单内页面不显示侧边栏
} else { } else {
store.commit('SET_SIDEBAR', true); // 其他页面显示侧边栏 store.commit('SET_SIDEBAR', true); // 其他页面显示侧边栏
// 一级页面 侧边栏显示 统一化
if (first_child_router.length > 0) { if (first_child_router.length > 0) {
first_child_router.forEach(item => { first_child_router.forEach(item => {
if (item.path == to.path) { if (item.path == to.path) {

Loading…
Cancel
Save