diff --git a/web/src/components/Modal.vue b/web/src/components/Modal.vue index b783232..7452479 100644 --- a/web/src/components/Modal.vue +++ b/web/src/components/Modal.vue @@ -7,7 +7,8 @@ const props = defineProps<{ }>(); const emit = defineEmits<{ - (e: 'submit'): void + (e: 'submit'): void, + (e: 'open'): void, }>(); const visible = ref(false); @@ -15,6 +16,7 @@ function closeDialog() { visible.value = false; }; function openDialog() { + emit("open"); visible.value = true; }; function submitDialog() { @@ -24,10 +26,14 @@ function submitDialog() {