build docs

This commit is contained in:
cookfront 2017-03-22 18:40:41 +08:00
parent c98d7caa43
commit 71c0e3c3a0
3 changed files with 12 additions and 2 deletions

2
docs/dist/0.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -46,6 +46,16 @@ 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