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 breadcrumb title to make it reactive to router change
Tianzhou Chenab330449d8e3
diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vueindex 23af6b0e85..7b4d5f7a62 100644--- a/frontend/src/components/Breadcrumb.vue+++ b/frontend/src/components/Breadcrumb.vue@@ -103,7 +103,7 @@ export default {components: {},setup(props, ctx) {const store = useStore();- const currentRoute = useRouter().currentRoute.value;+ const currentRoute = useRouter().currentRoute;const state = reactive<LocalState>({bookmarked: Math.random() > 0.5,@@ -116,13 +116,13 @@ export default {const bookmark: ComputedRef<Bookmark> = computed(() =>store.getters["bookmark/bookmarkByUserAndLink"](currentUser.value.id,- currentRoute.path+ currentRoute.value.path));const breadcrumbList = computed(() => {const routeSlug: RouterSlug = store.getters["router/routeSlug"](- currentRoute+ currentRoute.value);const instanceSlug = routeSlug.instanceSlug;const list: Array<BreadcrumbItem> = [];@@ -133,10 +133,10 @@ export default {});}- if (currentRoute.meta.title) {+ if (currentRoute.value.meta.title) {list.push({- name: currentRoute.meta.title(currentRoute),- path: currentRoute.path,+ name: currentRoute.value.meta.title(currentRoute.value),+ path: currentRoute.value.path,});}@@ -154,7 +154,7 @@ export default {store.dispatch("bookmark/createBookmark", {name: breadcrumbList.value[breadcrumbList.value.length - 1].name,- link: currentRoute.path,+ link: currentRoute.value.path,creatorId: currentUser.value.id,}).catch((error) => {