mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
fix docs style
This commit is contained in:
@@ -46,16 +46,6 @@ router.beforeEach((route, redirect, next) => {
|
||||
next();
|
||||
});
|
||||
|
||||
router.afterEach((route) => {
|
||||
if (route.path !== '/') {
|
||||
const sideNavBox = document.querySelector('.side-nav');
|
||||
const pageContentBox = document.querySelector('.page-content');
|
||||
if (pageContentBox) {
|
||||
pageContentBox.style.height = Math.max(sideNavBox && sideNavBox.clientHeight, pageContentBox && pageContentBox.clientHeight) + 'px';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
new Vue({ // eslint-disable-line
|
||||
render: h => h(App),
|
||||
router
|
||||
|
Reference in New Issue
Block a user