feat(功能用例): 脑图优化

This commit is contained in:
baiqi 2024-10-15 10:29:39 +08:00 committed by Craftsman
parent aa3392945c
commit 8e2c51c1f7
2 changed files with 3 additions and 3 deletions

View File

@ -1088,7 +1088,7 @@
Message.success(t('common.saveSuccess'));
resetMinderParams();
emit('save');
callback(true);
callback(false);
} catch (error) {
// eslint-disable-next-line no-console
console.log(error);

View File

@ -382,12 +382,12 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss
insertSpecifyNode('AppendChildNode', stepExpectTag);
window.minder.selectById(nodeId);
insertSpecifyNode('AppendChildNode', remarkTag);
nextTick(() => {
setTimeout(() => {
// 取消选中备注节点,选中用例节点
const remarkNode: MinderJsonNode = window.minder.getSelectedNode();
window.minder.toggleSelect(remarkNode);
window.minder.selectById(nodeId);
});
}, 0);
});
} else if (value === stepTag) {
// 步骤描述节点插入后,插入子节点