This commit is contained in:
cookfront 2017-03-09 21:22:25 +08:00
parent d4d923d55e
commit 3f58bd4b29
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export default {
computed: { computed: {
mobileUrl() { mobileUrl() {
return '/examples.html' + location.hash; return location.pathname + 'examples.html' + location.hash;
} }
}, },

View File

@ -38,7 +38,7 @@ router.beforeEach((route, redirect, next) => {
indexScrollTop = document.body.scrollTop; indexScrollTop = document.body.scrollTop;
} }
if (isMobile()) { if (isMobile()) {
window.location.replace('/examples.html#' + route.path); window.location.replace(location.pathname + 'examples.html#' + route.path);
return; return;
} }
document.title = route.meta.title || document.title; document.title = route.meta.title || document.title;