Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Make BBSwitch reactive to value change
天舟ae0f30c6d11b
diff --git a/frontend/src/bbkit/BBSwitch.vue b/frontend/src/bbkit/BBSwitch.vueindex 3f727c8f55..82e57c86b4 100644--- a/frontend/src/bbkit/BBSwitch.vue+++ b/frontend/src/bbkit/BBSwitch.vue@@ -32,7 +32,7 @@</template><script lang="ts">-import { ref } from "vue";+import { ref, watch } from "vue";export default {name: "BBSwitch",@@ -52,7 +52,15 @@ export default {},},setup(props, ctx) {- const on = ref(props.value);+ var on = ref(props.value);++ watch(+ () => props.value,+ (cur, prev) => {+ on.value = cur;+ }+ );+return { on };},};