diff --git a/src/views/safety_environmental_management/safety_environmental/add.vue b/src/views/safety_environmental_management/safety_environmental/add.vue index 183d068..472aea6 100644 --- a/src/views/safety_environmental_management/safety_environmental/add.vue +++ b/src/views/safety_environmental_management/safety_environmental/add.vue @@ -446,7 +446,7 @@ const fnSubmit = debounce( }, { atBegin: true } ); -const fnUploadImage = async (HIDDEN_ID, files) => { +const fnUploadImage = async (HIDDEN_ID, files = []) => { const formData = new FormData(); for (let i = 0; i < files.length; i++) { formData.append("FFILE", files[i]);