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