Showing
2 changed files
with
2 additions
and
2 deletions
@@ -158,7 +158,7 @@ | @@ -158,7 +158,7 @@ | ||
158 | } | 158 | } |
159 | 159 | ||
160 | const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { | 160 | const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { |
161 | - checkStrictly.value = true; | 161 | + checkStrictly.value = !!data?.isUpdate; |
162 | await resetFields(); | 162 | await resetFields(); |
163 | setModalProps({ confirmLoading: false }); | 163 | setModalProps({ confirmLoading: false }); |
164 | isUpdate.value = !!data?.isUpdate; | 164 | isUpdate.value = !!data?.isUpdate; |
@@ -163,7 +163,7 @@ | @@ -163,7 +163,7 @@ | ||
163 | 163 | ||
164 | const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { | 164 | const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { |
165 | await resetFields(); | 165 | await resetFields(); |
166 | - checkStrictly.value = true; | 166 | + checkStrictly.value = !!data?.isUpdate; |
167 | setModalProps({ confirmLoading: false }); | 167 | setModalProps({ confirmLoading: false }); |
168 | isAdd.value = !!data?.isAdd; | 168 | isAdd.value = !!data?.isAdd; |
169 | const groupListModel = await findCurrentUserGroups(); | 169 | const groupListModel = await findCurrentUserGroups(); |