diff --git a/dashboard/src/assets/images/logo-normal.svg b/dashboard/src/assets/images/logo-normal.svg new file mode 100644 index 00000000..eb837304 --- /dev/null +++ b/dashboard/src/assets/images/logo-normal.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dashboard/src/assets/images/logo-waifu.png b/dashboard/src/assets/images/logo-waifu.png new file mode 100644 index 00000000..cc9375e4 Binary files /dev/null and b/dashboard/src/assets/images/logo-waifu.png differ diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue index 4945a391..dae789c6 100644 --- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue @@ -213,11 +213,5 @@ commonStore.getStartTime(); - - - - GitHub Star! 🌟 - diff --git a/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue b/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue index 9c8e50f5..e3c8c168 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +++ b/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue @@ -17,7 +17,7 @@ const sidebarMenu = shallowRef(sidebarItems);
- v{{ version }} + {{ version }}
@@ -28,7 +28,14 @@ const sidebarMenu = shallowRef(sidebarItems); 构建: {{ buildVer }} 构建: embedded - © 2024 AstrBot + + + + + + © 2025 AstrBot
@@ -54,14 +61,14 @@ export default { // 不是版本,不显示 😎 return } - this.buildVer = res + this.buildVer = res.replace(/\s+/g, '') }) }, methods: { get_version() { axios.get('/api/stat/version') .then((res) => { - this.version = res.data.data.version; + this.version = "v" + res.data.data.version; }) .catch((err) => { console.log(err); diff --git a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts index 4761ae2a..bfccdbe9 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +++ b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts @@ -40,6 +40,11 @@ const sidebarItem: menu[] = [ icon: 'mdi-console', to: '/console' }, + { + title: '关于', + icon: 'mdi-information', + to: '/about' + }, // { // title: 'Project ATRI', // icon: 'mdi-grain', diff --git a/dashboard/src/router/MainRoutes.ts b/dashboard/src/router/MainRoutes.ts index 766dd3df..62a729e5 100644 --- a/dashboard/src/router/MainRoutes.ts +++ b/dashboard/src/router/MainRoutes.ts @@ -41,6 +41,11 @@ const MainRoutes = { name: 'Chat', path: '/chat', component: () => import('@/views/ChatPage.vue') + }, + { + name: 'About', + path: '/about', + component: () => import('@/views/AboutPage.vue') } ] }; diff --git a/dashboard/src/views/AboutPage.vue b/dashboard/src/views/AboutPage.vue new file mode 100644 index 00000000..e0927534 --- /dev/null +++ b/dashboard/src/views/AboutPage.vue @@ -0,0 +1,61 @@ + + + + \ No newline at end of file