feat: resolve status paths with router (#258)
This commit is contained in:
parent
24bbe9135b
commit
4ed1816806
22 changed files with 106 additions and 50 deletions
|
@ -2,7 +2,7 @@
|
|||
const props = defineProps<{
|
||||
text?: string
|
||||
icon: string
|
||||
to: string
|
||||
to: string | Record<string, string>
|
||||
}>()
|
||||
|
||||
defineSlots<{
|
||||
|
@ -15,7 +15,7 @@ const router = useRouter()
|
|||
useCommand({
|
||||
scope: 'Navigation',
|
||||
|
||||
name: () => props.text ?? props.to,
|
||||
name: () => props.text ?? typeof props.to === 'string' ? props.to as string : props.to.name,
|
||||
icon: () => props.icon,
|
||||
|
||||
onActivate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue