fix: assciasions update
This commit is contained in:
@@ -16,6 +16,7 @@ onMounted(async () => {
|
||||
});
|
||||
|
||||
const scheme: Scheme<Author> = reactive({
|
||||
entityId: "AuthorId",
|
||||
Id: {
|
||||
hidden: true,
|
||||
type: {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -16,6 +16,7 @@ onMounted(async () => {
|
||||
});
|
||||
|
||||
const scheme: Scheme<Post> = reactive({
|
||||
entityId: "PostId",
|
||||
Id: {
|
||||
hidden: true,
|
||||
type: {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user