mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
mobile page
This commit is contained in:
@@ -26,7 +26,6 @@ Vue.use(ZanUI.Lazyload, {
|
||||
lazyComponent: true
|
||||
});
|
||||
|
||||
|
||||
let routesConfig = routes(navConfig);
|
||||
routesConfig.push({
|
||||
path: '/',
|
||||
@@ -44,9 +43,9 @@ router.beforeEach((route, redirect, next) => {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
const pathname = process.env.NODE_ENV === 'production' ? '/vue/' : '/';
|
||||
const pathname = process.env.NODE_ENV === 'production' ? '/vue/examples' : '/examples.html';
|
||||
if (isMobile()) {
|
||||
window.location.replace(pathname + 'examples.html#/');
|
||||
window.location.replace(pathname);
|
||||
return;
|
||||
}
|
||||
document.title = route.meta.title || document.title;
|
||||
|
Reference in New Issue
Block a user