mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix docs
This commit is contained in:
parent
d4d923d55e
commit
3f58bd4b29
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user