fix: assciasions update

This commit is contained in:
2025-03-09 15:10:43 +07:00
parent df7c061d3a
commit 9e49d16a43
9 changed files with 36 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ onMounted(async () => {
});
const scheme: Scheme<Author> = reactive({
entityId: "AuthorId",
Id: {
hidden: true,
type: {

View File

@@ -18,7 +18,7 @@ const pushOrRemove = (option: T) => {
} else {
selected.value.push(option)
}
setNullIds()
//setNullIds()
}
const setNullIds = () => {
@@ -28,7 +28,7 @@ const setNullIds = () => {
})
}
onMounted(setNullIds)
//onMounted(setNullIds)
</script>
<template>

View File

@@ -16,6 +16,7 @@ onMounted(async () => {
});
const scheme: Scheme<Post> = reactive({
entityId: "PostId",
Id: {
hidden: true,
type: {

View File

@@ -72,7 +72,6 @@ const emits = defineEmits<{
</div>
<template #footer>
<Button severity="success" @click="async () => {
console.log(createItem)
if (props.updateMode) {
await props.service.update(createItem as T)
await emits('onSaveUpdate', createItem as T)