From 35ff1fd73eadd7e795457e6f209de631b1a1f1b5 Mon Sep 17 00:00:00 2001 From: Twilight Date: Sun, 4 Aug 2024 00:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppBar.vue | 66 ++++++++++----------------------------- src/stores/app.ts | 22 +++++++++++++ 2 files changed, 38 insertions(+), 50 deletions(-) diff --git a/src/components/AppBar.vue b/src/components/AppBar.vue index dd46187..19bb83a 100644 --- a/src/components/AppBar.vue +++ b/src/components/AppBar.vue @@ -3,11 +3,7 @@
- + @@ -16,67 +12,37 @@ - + - - - - - - + - + {{ configStore.app_name }} diff --git a/src/stores/app.ts b/src/stores/app.ts index c5259d4..c20f7dd 100644 --- a/src/stores/app.ts +++ b/src/stores/app.ts @@ -5,5 +5,27 @@ export const useAppStore = defineStore("app", { persist: true, state: () => ({ navigation_drawer: false, + navigation_items: [ + { + icon: "mdi-home", + text: "主页", + to: "/", + }, + { + icon: "mdi-assistant", + text: "助理", + to: "/assistants", + }, + { + icon: "mdi-tools", + text: "工具", + to: "/tools", + }, + { + icon: "mdi-web", + text: "联通测试", + to: "/ping", + } + ], }), });