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: branch redirect after created (#9031)
ecmadao10a6220b1ccb
diff --git a/frontend/src/views/branch/BranchDetail.vue b/frontend/src/views/branch/BranchDetail.vueindex 3f579a7582..c72bc93f5c 100644--- a/frontend/src/views/branch/BranchDetail.vue+++ b/frontend/src/views/branch/BranchDetail.vue@@ -20,17 +20,6 @@ import { useProjectV1Store } from "@/store";import { useSchemaDesignStore } from "@/store/modules/schemaDesign";import { idFromSlug } from "@/utils";-const props = defineProps({- projectSlug: {- required: true,- type: String,- },- branchName: {- required: true,- type: String,- },-});-const { t } = useI18n();const route = useRoute();const projectStore = useProjectV1Store();@@ -38,15 +27,17 @@ const schemaDesignStore = useSchemaDesignStore();const branchFullName = ref<string>("");const ready = ref<boolean>(false);-const isCreating = computed(() => props.branchName === "new");+const isCreating = computed(() => route.params.branchName === "new");const branch = computed(() => {return schemaDesignStore.getSchemaDesignByName(branchFullName.value);});const project = computed(() => {- if (props.projectSlug === "-") {+ if (route.params.projectSlug === "-") {return;}- return projectStore.getProjectByUID(String(idFromSlug(props.projectSlug)));+ return projectStore.getProjectByUID(+ String(idFromSlug(route.params.projectSlug as string))+ );});watch(@@ -57,7 +48,7 @@ watch(}// Prepare branch name from route params.- const sheetId = (props.branchName as string) || "";+ const sheetId = (route.params.branchName as string) || "";if (!sheetId || !project.value) {return;}