2828 :handleCancel =" handleCancel"
2929 :handleSubmit =" handleSubmit"
3030 cancelText =" 취소"
31- submitText =" 수정 " />
31+ : submitText =" statusText " />
3232 <ModalView
3333 :isOpen =" isModalVisible === 'success'"
3434 :type =" 'successType'"
3535 @close =" handleCancel" >
36- <template #header >작업이 수정되었습니다 </template >
36+ <template #header >작업이 {{ statusText }}되었습니다 </template >
3737 </ModalView >
3838 <ModalView
3939 :isOpen =" isModalVisible === 'fail'"
4040 :type =" 'failType'"
4141 @close =" handleCancel" >
42- <template #header >작업요청을 실패했습니다</template >
42+ <template #header >작업{{ statusText }}을 실패했습니다</template >
4343 <template #body >잠시후 시도해주세요</template >
4444 </ModalView >
4545 </div >
@@ -50,7 +50,7 @@ import { getMainCategory, getSubCategory } from '@/api/common'
5050import { getTaskDetailUser , patchTaskRequest , postTaskRequest } from ' @/api/user'
5151import type { Category , SubCategory } from ' @/types/common'
5252import type { AttachmentResponse } from ' @/types/user'
53- import { onMounted , ref , watch } from ' vue'
53+ import { computed , onMounted , ref , watch } from ' vue'
5454import { useRouter } from ' vue-router'
5555import FormButtonContainer from ' ../common/FormButtonContainer.vue'
5656import ModalView from ' ../common/ModalView.vue'
@@ -61,6 +61,9 @@ import RequestTaskTextArea from './RequestTaskTextArea.vue'
6161
6262const category1 = ref <Category | null >(null )
6363const category2 = ref <SubCategory | null >(null )
64+ const statusText = computed (() => {
65+ return reqType === ' edit' ? ' 수정' : ' 요청'
66+ })
6467
6568const title = ref (' ' )
6669const description = ref (' ' )
@@ -129,6 +132,8 @@ const handleSubmit = async () => {
129132 }
130133 const formData = new FormData ()
131134
135+ isSubmitting .value = true
136+
132137 const attachmentsToDelete = initFileArr .value
133138 .filter (initFile => ! file .value ?.some (f => f .name === initFile .fileName ))
134139 .map (initFile => initFile .fileId )
0 commit comments