feat(功能用例): 脑图优化
This commit is contained in:
parent
aa3392945c
commit
8e2c51c1f7
|
@ -1088,7 +1088,7 @@
|
||||||
Message.success(t('common.saveSuccess'));
|
Message.success(t('common.saveSuccess'));
|
||||||
resetMinderParams();
|
resetMinderParams();
|
||||||
emit('save');
|
emit('save');
|
||||||
callback(true);
|
callback(false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
@ -382,12 +382,12 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss
|
||||||
insertSpecifyNode('AppendChildNode', stepExpectTag);
|
insertSpecifyNode('AppendChildNode', stepExpectTag);
|
||||||
window.minder.selectById(nodeId);
|
window.minder.selectById(nodeId);
|
||||||
insertSpecifyNode('AppendChildNode', remarkTag);
|
insertSpecifyNode('AppendChildNode', remarkTag);
|
||||||
nextTick(() => {
|
setTimeout(() => {
|
||||||
// 取消选中备注节点,选中用例节点
|
// 取消选中备注节点,选中用例节点
|
||||||
const remarkNode: MinderJsonNode = window.minder.getSelectedNode();
|
const remarkNode: MinderJsonNode = window.minder.getSelectedNode();
|
||||||
window.minder.toggleSelect(remarkNode);
|
window.minder.toggleSelect(remarkNode);
|
||||||
window.minder.selectById(nodeId);
|
window.minder.selectById(nodeId);
|
||||||
});
|
}, 0);
|
||||||
});
|
});
|
||||||
} else if (value === stepTag) {
|
} else if (value === stepTag) {
|
||||||
// 步骤描述节点插入后,插入子节点
|
// 步骤描述节点插入后,插入子节点
|
||||||
|
|
Loading…
Reference in New Issue