diff --git a/frontend/components.d.ts b/frontend/components.d.ts index e40dbe6..52b0414 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -32,6 +32,7 @@ declare module 'vue' { NModalProvider: typeof import('naive-ui')['NModalProvider'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NRadio: typeof import('naive-ui')['NRadio'] + NRadioGroup: typeof import('naive-ui')['NRadioGroup'] NScrollbar: typeof import('naive-ui')['NScrollbar'] NSelect: typeof import('naive-ui')['NSelect'] NSpace: typeof import('naive-ui')['NSpace'] diff --git a/frontend/src/components/layout/Sider.vue b/frontend/src/components/layout/Sider.vue index a854154..64ce18b 100644 --- a/frontend/src/components/layout/Sider.vue +++ b/frontend/src/components/layout/Sider.vue @@ -2,7 +2,7 @@
- res-downloader logo + res-downloader logo
@@ -119,11 +119,11 @@ const footerOptions = ref([ }, ]) -const handleUpdateValue = (key: string, item: MenuOption) => { +const handleUpdateValue = (key: string, item?: MenuOption) => { menuValue.value = key return router.push({path: "/" + key}) } -const handleFooterUpdate = (key: string, item: MenuOption) => { +const handleFooterUpdate = (key: string, item?: MenuOption) => { if (key === "about") { showAppInfo.value = true return diff --git a/frontend/src/views/index.vue b/frontend/src/views/index.vue index 04ee017..1778ae5 100644 --- a/frontend/src/views/index.vue +++ b/frontend/src/views/index.vue @@ -1,5 +1,5 @@