File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/components/request-task Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 66 :label-name =" '1차 카테고리'"
77 :placeholderText =" '1차 카테고리를 선택해주세요'"
88 :isDisabled =" false"
9- :is-invalidate =" isInvalidate" />
9+ :is-invalidate =" isInvalidate === 'category1' ? 'category' : '' " />
1010 <CategoryDropDown
1111 v-model =" category2"
1212 :options =" afterSubCategoryArr"
1313 :label-name =" '2차 카테고리'"
1414 :placeholderText =" '2차 카테고리를 선택해주세요'"
1515 :isDisabled =" !category1"
16- :is-invalidate =" isInvalidate" />
16+ :is-invalidate =" isInvalidate === 'category2' ? 'category' : '' " />
1717 <RequestTaskInput
1818 v-model =" title"
1919 :placeholderText =" '제목을 입력해주세요'"
@@ -114,8 +114,12 @@ watch(category1, async newValue => {
114114
115115const handleSubmit = async () => {
116116 if (isSubmitting .value || isModalVisible .value ) return
117- if (! category2 .value ) {
118- isInvalidate .value = ' category'
117+
118+ if (! category1 .value ) {
119+ isInvalidate .value = ' category1'
120+ return
121+ } else if (! category2 .value ) {
122+ isInvalidate .value = ' category2'
119123 return
120124 } else if (! title .value ) {
121125 isInvalidate .value = ' input'
You can’t perform that action at this time.
0 commit comments