fix event not working issue close #1

This commit is contained in:
Adrian Zürcher
2025-11-06 09:08:01 +01:00
4 changed files with 41 additions and 18 deletions

View File

@@ -50,7 +50,7 @@ function open(Event: Event | null) {
if (Event !== null) {
localEvent.value = { ...Event };
newEvent.value = false;
newEvent.value = Event.id === 0;
} else {
localEvent.value = {
id: 0,
@@ -77,8 +77,8 @@ async function save() {
appApi
.post(query, payload)
.then(() => {
emit('update');
.then((resp) => {
emit('update', resp.data.data);
dialog.value.close();
})
.catch((err) => NotifyResponse(err, 'error'));