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