mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat: doc use hash router
This commit is contained in:
parent
841b50cd95
commit
b43b16d04c
@ -24,11 +24,11 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getSimulatorPath() {
|
getSimulatorPath() {
|
||||||
const dir = location.pathname.split('/').pop();
|
const dir = location.hash.split('/').pop();
|
||||||
if (dir === 'quickstart' || dir === 'changelog') {
|
if (dir === 'quickstart' || dir === 'changelog') {
|
||||||
return '/zanui/vue/examples';
|
return '/zanui/vue/examples';
|
||||||
} else {
|
} else {
|
||||||
return `/zanui/vue/examples/component/${dir}`;
|
return `/zanui/vue/examples#/component/${dir}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user