mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix docs
This commit is contained in:
@@ -7,7 +7,7 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
mobileUrl() {
|
mobileUrl() {
|
||||||
return '/examples.html' + location.hash;
|
return location.pathname + 'examples.html' + location.hash;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user