From 98681964d7ce4f3808b80b54e4bc59b5713e0270 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 7 Nov 2023 15:30:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E9=9B=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/layout/components/app-main/index.vue | 1 - .../layout/components/sidebar/SidebarItem.vue | 4 +++ ui/src/layout/components/sidebar/index.vue | 14 ++++----- ui/src/router/index.ts | 2 +- ui/src/router/modules/dataset.ts | 31 +++++++++++++------ ui/src/router/modules/setting.ts | 7 ++++- ui/src/views/dataset/DatasetDoc.vue | 9 +++++- ui/src/views/dataset/DatasetSetting.vue | 14 +++++++++ ui/src/views/dataset/index.vue | 9 ++++-- .../setting/component/PermissionSetting.vue | 12 +++---- 10 files changed, 73 insertions(+), 30 deletions(-) create mode 100644 ui/src/views/dataset/DatasetSetting.vue diff --git a/ui/src/layout/components/app-main/index.vue b/ui/src/layout/components/app-main/index.vue index 454ab8b87..61cb19886 100644 --- a/ui/src/layout/components/app-main/index.vue +++ b/ui/src/layout/components/app-main/index.vue @@ -14,7 +14,6 @@ import { useRoute } from 'vue-router' const route = useRoute() const cachedViews: any = ref([]) - onBeforeUpdate(() => { let isCached = route.meta?.cache let name = route.name diff --git a/ui/src/layout/components/sidebar/SidebarItem.vue b/ui/src/layout/components/sidebar/SidebarItem.vue index ca5a9f025..cdc2dc992 100644 --- a/ui/src/layout/components/sidebar/SidebarItem.vue +++ b/ui/src/layout/components/sidebar/SidebarItem.vue @@ -31,6 +31,10 @@ defineProps<{ padding: 13px 12px 13px 16px !important; font-weight: 500; border-radius: 4px; + &:hover { + background: none; + color: var(--el-menu-active-color); + } } .el-menu-item.is-active { diff --git a/ui/src/layout/components/sidebar/index.vue b/ui/src/layout/components/sidebar/index.vue index 4acd6e05a..2c7ad35b6 100644 --- a/ui/src/layout/components/sidebar/index.vue +++ b/ui/src/layout/components/sidebar/index.vue @@ -1,12 +1,12 @@