fix event not working issue close #1
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user