fix(全局): bugFix

This commit is contained in:
baiqi 2024-06-25 16:51:20 +08:00 committed by 刘瑞斌
parent 8c4543caf4
commit 04ebd8118b
2 changed files with 12 additions and 4 deletions

View File

@ -751,7 +751,7 @@
};
}
function resetMinderParams(clearDeleteResource = false) {
function resetMinderParams(clearDeleteResource = true) {
tempMinderParams.value = {
projectId: appStore.currentProjectId,
versionId: '',
@ -808,7 +808,11 @@
});
}
}
const minderNode: MinderJsonNode = window.minder.getNodeById(node.data.id);
if (minderNode.data) {
minderNode.data.isNew = false;
minderNode.data.changed = false;
}
return true;
});
return tempMinderParams.value;
@ -831,7 +835,7 @@
} catch (error) {
// eslint-disable-next-line no-console
console.log(error);
resetMinderParams(true);
resetMinderParams(false);
} finally {
loading.value = false;
}

View File

@ -77,7 +77,11 @@
if (!isHasChildren.value) {
return (
(props.selectedKeys.size > 0 && selectAllStatus.value === SelectAllEnum.ALL) ||
(props.selectedKeys.size > 0 && props.selectedKeys.size === props.total)
(props.selectedKeys.size > 0 && props.selectedKeys.size === props.total) ||
(props.selectedKeys.size > 0 &&
props.selectedKeys.size > props.total &&
props.currentData.length === props.total &&
props.currentData.every((e) => props.selectedKeys.has(e[props.rowKey])))
);
}
// children