This commit is contained in:
teukkk 2025-06-18 17:56:27 +08:00
parent c793f429de
commit 7207e20246

View File

@ -117,14 +117,14 @@ function handleCancel() {
const memberFormContentRef = ref<InstanceType<typeof MemberFormContent>>()
function handleAdd() {
// memberFormContentRef.value?.validate().then(async (valid) => {
// if (valid) {
// await WorkspaceApi.CreateWorkspaceMember(props.currentWorkspace?.id as string, list.value, loading)
// MsgSuccess(t('common.addSuccess'))
// handleCancel();
// emit('refresh')
// }
// })
memberFormContentRef.value?.validate().then(async (valid: any) => {
if (valid) {
await WorkspaceApi.CreateWorkspaceMember(props.currentWorkspace?.id as string, list.value, loading)
MsgSuccess(t('common.addSuccess'))
handleCancel();
emit('refresh')
}
})
}
defineExpose({ open })