File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
ui/src/views/workspace/component Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import MemberFormContent from '@/views/role/component/MemberFormContent.vue'
2626import { t } from ' @/locales'
2727import { MsgSuccess } from ' @/utils/message'
2828import type { CreateWorkspaceMemberParamsItem , WorkspaceItem } from ' @/api/type/workspace'
29- import type { FormItemModel } from ' @/api/type/role'
29+ import type { FormItemModel } from ' @/api/type/role'
3030
3131const props = defineProps <{
3232 currentWorkspace? : WorkspaceItem
@@ -117,14 +117,14 @@ function handleCancel() {
117117
118118const memberFormContentRef = ref <InstanceType <typeof MemberFormContent >>()
119119function handleAdd() {
120- // memberFormContentRef.value?.validate().then(async (valid) => {
121- // if (valid) {
122- // await WorkspaceApi.CreateWorkspaceMember(props.currentWorkspace?.id as string, list.value, loading)
123- // MsgSuccess(t('common.addSuccess'))
124- // handleCancel();
125- // emit('refresh')
126- // }
127- // })
120+ memberFormContentRef .value ?.validate ().then (async (valid : any ) => {
121+ if (valid ) {
122+ await WorkspaceApi .CreateWorkspaceMember (props .currentWorkspace ?.id as string , list .value , loading )
123+ MsgSuccess (t (' common.addSuccess' ))
124+ handleCancel ();
125+ emit (' refresh' )
126+ }
127+ })
128128}
129129
130130defineExpose ({ open })
You can’t perform that action at this time.
0 commit comments