fix example redirect

This commit is contained in:
cookfront
2017-03-27 18:59:43 +08:00
parent e4075e91df
commit 6f51c93d6c
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ router.beforeEach((route, redirect, next) => {
window.scrollTo(0, 0);
}
if (isMobile()) {
window.location.replace(location.pathname + 'examples.html#' + route.path);
window.location.replace('/vue/' + 'examples.html#' + route.path);
return;
}
document.title = route.meta.title || document.title;