Добавлен onCloseWithoutSave при нажатии на закрыть

This commit is contained in:
brusnitsyn
2025-12-19 00:40:52 +09:00
parent cc10b54ece
commit 3f9d7fe30b

View File

@@ -99,7 +99,7 @@ watch(() => props.archiveHistoryId, async (newId) => {
</script>
<template>
<NModal v-model:show="open" preset="card" class="max-w-2xl" closable @close="open = false">
<NModal v-model:show="open" preset="card" class="max-w-2xl" closable @close="onCloseWithoutSave">
<template #header>
{{ archiveHistoryId === null ? 'Добавить' : 'Редактировать' }} запись выдачи
</template>