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: {
|
||||
getSimulatorPath() {
|
||||
const dir = location.pathname.split('/').pop();
|
||||
const dir = location.hash.split('/').pop();
|
||||
if (dir === 'quickstart' || dir === 'changelog') {
|
||||
return '/zanui/vue/examples';
|
||||
} else {
|
||||
return `/zanui/vue/examples/component/${dir}`;
|
||||
return `/zanui/vue/examples#/component/${dir}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user