diff --git a/src/views/plugin/study/Sheet/Create.vue b/src/views/plugin/study/Sheet/Create.vue index 14f466f8..f6493f77 100644 --- a/src/views/plugin/study/Sheet/Create.vue +++ b/src/views/plugin/study/Sheet/Create.vue @@ -416,10 +416,13 @@ export default { methods: { onSubmit () { this.isSaving = true - const headers = { - 'Content-Type': 'multipart/form-data' + const options = { + timeout: 12 * 60 * 60 * 1000, // 12 hours + headers: { + 'Content-Type': 'multipart/form-data' + } } - axios.post('/plugin/study/sheet', this.getFormData(), { headers }) + axios.post('/plugin/study/sheet', this.getFormData(), options) .then(response => { const message = this.$t('data has been saved') const capitalizedMessage = this.$options.filters.capitalize(message) diff --git a/src/views/plugin/study/Sheet/Edit.vue b/src/views/plugin/study/Sheet/Edit.vue index 1846c59c..c95daa17 100644 --- a/src/views/plugin/study/Sheet/Edit.vue +++ b/src/views/plugin/study/Sheet/Edit.vue @@ -445,10 +445,13 @@ export default { }, onSubmit () { this.isSaving = true - const headers = { - 'Content-Type': 'multipart/form-data' + const options = { + timeout: 12 * 60 * 60 * 1000, // 12 hours + headers: { + 'Content-Type': 'multipart/form-data' + } } - axios.post('/plugin/study/sheet', this.getFormData(), { headers }) + axios.post('/plugin/study/sheet', this.getFormData(), options) .then(response => { const message = this.$t('data has been saved') const capitalizedMessage = this.$options.filters.capitalize(message)