Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: add key to avoid vue bug (component recycle) (#9604)
ecmadao865173534c5a
diff --git a/frontend/src/components/Project/ProjectSidebar.vue b/frontend/src/components/Project/ProjectSidebar.vueindex be0d6b3701..22ca4765d3 100644--- a/frontend/src/components/Project/ProjectSidebar.vue+++ b/frontend/src/components/Project/ProjectSidebar.vue@@ -1,5 +1,6 @@<template><CommonSidebar+ :key="'project'":item-list="projectSidebarItemList":get-item-class="getItemClass"@select="(val: string | undefined) => onSelect(val as ProjectHash)"diff --git a/frontend/src/views/DashboardSidebar.vue b/frontend/src/views/DashboardSidebar.vueindex 4c8a5e4870..7d9ce9a999 100644--- a/frontend/src/views/DashboardSidebar.vue+++ b/frontend/src/views/DashboardSidebar.vue@@ -1,11 +1,10 @@<template><!-- Navigation -->- <nav class="overflow-y-hidden flex flex-col">- <CommonSidebar- :item-list="dashboardSidebarItemList"- :get-item-class="getItemClass"- />- </nav>+ <CommonSidebar+ :key="'dashboard'"+ :item-list="dashboardSidebarItemList"+ :get-item-class="getItemClass"+ /></template><script lang="ts" setup>@@ -107,6 +106,7 @@ const dashboardSidebarItemList = computed((): SidebarItem[] => {icon: h(TurtleIcon),path: "/slow-query",type: "route",+ hide: !shouldShowSyncSchemaEntry.value,},{title: t("export-center.self"),diff --git a/frontend/src/views/SettingSidebar.vue b/frontend/src/views/SettingSidebar.vueindex bd572d54f0..228db9870d 100644--- a/frontend/src/views/SettingSidebar.vue+++ b/frontend/src/views/SettingSidebar.vue@@ -1,5 +1,6 @@<template><CommonSidebar+ :key="'setting'":item-list="(settingSidebarItemList as SidebarItem[])":get-item-class="getItemClass"/>