mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[Doc] change document site path to /zanui/vant (#262)
* [bugfix] CouponList always show empty info * [bugfix] add click feedback of buttons in components * [Doc] add custom theme document * [new feature] Notice bar support more props * [bugfix] PullRefresh test cases * [bugfix] unused NoticeBar style * [bugfix] Swipe width calc error * [Doc] english document of all action components * [Doc] change document site path to /zanui/vant * [Doc] fix
This commit is contained in:
@@ -18,7 +18,7 @@ export default {
|
||||
}
|
||||
|
||||
return {
|
||||
simulators: [`/zanui/vue/examples${location.hash}`],
|
||||
simulators: [`/zanui/vant/examples${location.hash}`],
|
||||
demoURL: '',
|
||||
lang: getLang()
|
||||
};
|
||||
|
@@ -18,7 +18,7 @@ Vue.use(VueRouter);
|
||||
const routesConfig = routes(true);
|
||||
const router = new VueRouter({
|
||||
mode: 'hash',
|
||||
base: '/zanui/vue/examples',
|
||||
base: '/zanui/vant/examples',
|
||||
routes: routesConfig
|
||||
});
|
||||
|
||||
|
@@ -12,13 +12,13 @@ const routesConfig = routes();
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'hash',
|
||||
base: '/zanui/vue/',
|
||||
base: '/zanui/vant/',
|
||||
routes: routesConfig
|
||||
});
|
||||
|
||||
router.beforeEach((route, redirect, next) => {
|
||||
if (isMobile) {
|
||||
window.location.replace('/zanui/vue/examples');
|
||||
window.location.replace('/zanui/vant/examples');
|
||||
}
|
||||
document.title = route.meta.title || document.title;
|
||||
next();
|
||||
|
Reference in New Issue
Block a user