mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[Improvement] Progress: support gradient color (#1098)
This commit is contained in:
@@ -16,7 +16,7 @@ const router = new VueRouter({
|
||||
|
||||
router.beforeEach((route, redirect, next) => {
|
||||
if (isMobile) {
|
||||
location.replace('/zanui/vant/examples' + location.hash);
|
||||
location.replace(location.pathname === '/' ? 'examples.html' : '/zanui/vant/examples' + location.hash);
|
||||
}
|
||||
document.title = route.meta.title || document.title;
|
||||
next();
|
||||
|
Reference in New Issue
Block a user