From 8f8865801acbcef3de633598233771406867d512 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sat, 20 Jul 2024 18:11:38 +0800 Subject: [PATCH] feat: redirect dashboard to analysis and update nav link Enhances navigation by redirecting the main dashboard to the analysis page and updating the navigation link to directly access the analysis section. This change streamlines user access to the primary dashboard functionality. --- components/dashboard/Nav.vue | 3 +-- nuxt.config.ts | 5 ++++- pages/dashboard/{index.vue => analysis.vue} | 0 3 files changed, 5 insertions(+), 3 deletions(-) rename pages/dashboard/{index.vue => analysis.vue} (100%) diff --git a/components/dashboard/Nav.vue b/components/dashboard/Nav.vue index 64fcd37..2c1fa5d 100644 --- a/components/dashboard/Nav.vue +++ b/components/dashboard/Nav.vue @@ -15,10 +15,9 @@ const route = useRoute() > Links - + Analysis - diff --git a/nuxt.config.ts b/nuxt.config.ts index 6f81ad7..c7685f9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -21,6 +21,9 @@ export default defineNuxtConfig({ '/dashboard/**': { ssr: false, }, + '/dashboard': { + redirect: '/dashboard/links', + }, }, hub: { @@ -62,4 +65,4 @@ export default defineNuxtConfig({ }, compatibilityDate: '2024-07-08', -}) \ No newline at end of file +}) diff --git a/pages/dashboard/index.vue b/pages/dashboard/analysis.vue similarity index 100% rename from pages/dashboard/index.vue rename to pages/dashboard/analysis.vue