Skip to content

Commit 3b15287

Browse files
committed
♻️ [fix] : 요청 수정 시 템플릿 무시
1 parent 7d865bd commit 3b15287

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/request-task/ReRequestTask.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const subCategoryArr = ref<SubCategory[]>([])
9595
const afterSubCategoryArr = ref<SubCategory[]>([])
9696
const initFileArr = ref<AttachmentResponse[]>([])
9797
const isFirst = ref(true)
98+
const isdescriptionFirst = ref(true)
9899
99100
const { id, reqType } = defineProps<{ id: string; reqType: string }>()
100101
const router = useRouter()
@@ -145,9 +146,11 @@ watch(category1, async newValue => {
145146
})
146147
147148
watch(category2, async newVal => {
148-
if (newVal) {
149+
if (newVal && !isdescriptionFirst.value) {
149150
const res = await getSubCategoryDetail(newVal.subCategoryId)
150151
description.value = res.descriptionExample
152+
} else if (newVal) {
153+
isdescriptionFirst.value = false
151154
}
152155
})
153156

0 commit comments

Comments
 (0)