mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
feat: doc use hash router
This commit is contained in:
@@ -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}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user