From 17a15e2917d0dc2d12b27ebbd97bfd2e5da3f67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Thu, 1 Dec 2022 21:45:13 +0800 Subject: [PATCH] fix: navigation commands name --- components/nav/NavSideItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nav/NavSideItem.vue b/components/nav/NavSideItem.vue index ac205727..c33b07ba 100644 --- a/components/nav/NavSideItem.vue +++ b/components/nav/NavSideItem.vue @@ -15,7 +15,7 @@ const router = useRouter() useCommand({ 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, onActivate() {