Skip to content

Commit b160481

Browse files
committed
docs(RelatedPage): remove unnecessary fn call
1 parent f2d8888 commit b160481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docs/src/components/doc/RelatedPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
2929
// Utilities
3030
import { computed } from 'vue'
31-
import { rpath, trailingSlash } from '@/util/routes'
31+
import { rpath } from '@/util/routes'
3232
import { upperFirst } from 'lodash-es'
3333
3434
const appStore = useAppStore()
3535
const props = defineProps({ to: String })
3636
const routes = useRouter().getRoutes()
37-
const path = trailingSlash(rpath(props.to))
37+
const path = rpath(props.to)
3838
const item = routes.find(r => r.path === path)
3939
const category = path.split('/')[2]
4040
const icon = computed(() => appStore.categories[category])

0 commit comments

Comments
 (0)