fix update

This commit is contained in:
2024-01-11 13:21:24 +01:00
parent cc55a303a6
commit 54fbaa3915

View File

@@ -35,8 +35,7 @@
> >
</div> </div>
<div class="ms-4" style="color: #a9a9a9" v-html="ctext"></div> <div class="ms-4" style="color: #a9a9a9" v-html="ctext"></div>
<img :src="image" style="max-width:200px"> <img :src="image" style="max-width: 200px" />
</div> </div>
</template> </template>
<script> <script>
@@ -120,15 +119,20 @@ export default {
this.$emit('itemRemoved', this.modelValue) this.$emit('itemRemoved', this.modelValue)
}, },
onCloseModal: function () { onCloseModal: function () {
this.modalBox = false setTimeout(
this.$emit('update:modelValue', { function () {
name: this.name, this.modalBox = false
image: this.image, this.$emit('update:modelValue', {
title: this.title, name: this.name,
id: this.id, image: this.image,
data: this.data, title: this.title,
type: this.type id: this.id,
}) data: this.data,
type: this.type
})
}.bind(this),
200
)
} }
} }
} }