We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d8888 commit b160481Copy full SHA for b160481
packages/docs/src/components/doc/RelatedPage.vue
@@ -28,13 +28,13 @@
28
29
// Utilities
30
import { computed } from 'vue'
31
- import { rpath, trailingSlash } from '@/util/routes'
+ import { rpath } from '@/util/routes'
32
import { upperFirst } from 'lodash-es'
33
34
const appStore = useAppStore()
35
const props = defineProps({ to: String })
36
const routes = useRouter().getRoutes()
37
- const path = trailingSlash(rpath(props.to))
+ const path = rpath(props.to)
38
const item = routes.find(r => r.path === path)
39
const category = path.split('/')[2]
40
const icon = computed(() => appStore.categories[category])
0 commit comments