Refactoring stores and templates pages to comp. api

This commit is contained in:
Julien Nahum
2023-12-19 13:46:55 +01:00
parent 3b798c12fd
commit bb519907f6
24 changed files with 432 additions and 457 deletions

View File

@@ -161,7 +161,7 @@ export default {
if (response.data.message) {
this.alertSuccess(response.data.message)
}
this.templatesStore.addOrUpdate(response.data.data)
this.templatesStore.save(response.data.data)
this.$emit('close')
})
},
@@ -171,7 +171,7 @@ export default {
if (response.data.message) {
this.alertSuccess(response.data.message)
}
this.templatesStore.addOrUpdate(response.data.data)
this.templatesStore.save(response.data.data)
this.$emit('close')
})
},