feat: add route alias for GoToSocial status

zio/stable
三咲智子 Kevin Deng 2023-01-15 17:55:58 +08:00
parent 5247b36b6d
commit 08293a107c
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import type { ComponentPublicInstance } from 'vue'
definePageMeta({ definePageMeta({
name: 'status', name: 'status',
key: route => route.path, key: route => route.path,
// GoToSocial
alias: ['/:server/@:account/statuses/:status'],
}) })
const route = useRoute() const route = useRoute()