fix: bug
This commit is contained in:
parent
c793f429de
commit
7207e20246
@ -26,7 +26,7 @@ import MemberFormContent from '@/views/role/component/MemberFormContent.vue'
|
|||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import { MsgSuccess } from '@/utils/message'
|
import { MsgSuccess } from '@/utils/message'
|
||||||
import type { CreateWorkspaceMemberParamsItem, WorkspaceItem } from '@/api/type/workspace'
|
import type { CreateWorkspaceMemberParamsItem, WorkspaceItem } from '@/api/type/workspace'
|
||||||
import type { FormItemModel } from '@/api/type/role'
|
import type { FormItemModel } from '@/api/type/role'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
currentWorkspace?: WorkspaceItem
|
currentWorkspace?: WorkspaceItem
|
||||||
@ -117,14 +117,14 @@ function handleCancel() {
|
|||||||
|
|
||||||
const memberFormContentRef = ref<InstanceType<typeof MemberFormContent>>()
|
const memberFormContentRef = ref<InstanceType<typeof MemberFormContent>>()
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
// memberFormContentRef.value?.validate().then(async (valid) => {
|
memberFormContentRef.value?.validate().then(async (valid: any) => {
|
||||||
// if (valid) {
|
if (valid) {
|
||||||
// await WorkspaceApi.CreateWorkspaceMember(props.currentWorkspace?.id as string, list.value, loading)
|
await WorkspaceApi.CreateWorkspaceMember(props.currentWorkspace?.id as string, list.value, loading)
|
||||||
// MsgSuccess(t('common.addSuccess'))
|
MsgSuccess(t('common.addSuccess'))
|
||||||
// handleCancel();
|
handleCancel();
|
||||||
// emit('refresh')
|
emit('refresh')
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user