[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:
neverland
2017-10-26 22:14:08 -05:00
committed by GitHub
parent a7d8379514
commit a186f6958d
7 changed files with 12 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ export default {
}
return {
simulators: [`/zanui/vue/examples${location.hash}`],
simulators: [`/zanui/vant/examples${location.hash}`],
demoURL: '',
lang: getLang()
};

View File

@@ -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
});

View File

@@ -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();