Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Make BBCheckBox value reactive

天舟a644507a507f
diff --git a/frontend/src/bbkit/BBCheckbox.vue b/frontend/src/bbkit/BBCheckbox.vue
index 91f49a886b..41f2a83fa7 100644
--- a/frontend/src/bbkit/BBCheckbox.vue
+++ b/frontend/src/bbkit/BBCheckbox.vue
@@ -40,7 +40,7 @@
</template>
<script lang="ts">
-import { ref } from "vue";
+import { ref, watch } from "vue";
export default {
name: "BBCheckbox",
@@ -65,6 +65,12 @@ export default {
},
setup(props, ctx) {
const on = ref(props.value);
+ watch(
+ () => props.value,
+ (cur, _) => {
+ on.value = cur;
+ }
+ );
return { on };
},
};