File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/components/request-task Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ const subCategoryArr = ref<SubCategory[]>([])
9595const afterSubCategoryArr = ref <SubCategory []>([])
9696const initFileArr = ref <AttachmentResponse []>([])
9797const isFirst = ref (true )
98+ const isdescriptionFirst = ref (true )
9899
99100const { id, reqType } = defineProps <{ id: string ; reqType: string }>()
100101const router = useRouter ()
@@ -145,9 +146,11 @@ watch(category1, async newValue => {
145146})
146147
147148watch (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
You can’t perform that action at this time.
0 commit comments