fix: navigation commands name

zio/stable
三咲智子 2022-12-01 21:45:13 +08:00
parent 447ed6d941
commit 17a15e2917
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ const router = useRouter()
useCommand({ useCommand({
scope: 'Navigation', scope: 'Navigation',
name: () => props.text ?? typeof props.to === 'string' ? props.to as string : props.to.name, name: () => props.text ?? (typeof props.to === 'string' ? props.to as string : props.to.name),
icon: () => props.icon, icon: () => props.icon,
onActivate() { onActivate() {