fix: 无法添加成员

This commit is contained in:
meilin.huang
2023-07-03 21:58:37 +08:00
parent ae5a1fd7de
commit fa58f6d2de

View File

@@ -185,7 +185,7 @@ const state = reactive({
addVisible: false, addVisible: false,
memForm: { memForm: {
accountIds: [] as any, accountIds: [] as any,
teamId: 0, teamId: 0 as any,
}, },
accounts: Array(), accounts: Array(),
}, },
@@ -313,7 +313,7 @@ const showAddMemberDialog = () => {
const addMember = async () => { const addMember = async () => {
const memForm = state.showMemDialog.memForm; const memForm = state.showMemDialog.memForm;
memForm.teamId = (state.selectionData[0] as any).id; memForm.teamId = state.showMemDialog.query.teamId;
notBlank(memForm.accountIds, '请先选择账号'); notBlank(memForm.accountIds, '请先选择账号');
await tagApi.saveTeamMem.request(memForm); await tagApi.saveTeamMem.request(memForm);