fix(脑图): 脑图展开节点后切换报错
This commit is contained in:
parent
a0936719c4
commit
8a2d9e273e
|
@ -35,7 +35,7 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss
|
|||
function canShowFloatMenu() {
|
||||
if (window.minder) {
|
||||
const node: MinderJsonNode = window.minder.getSelectedNode();
|
||||
if (node.data?.type === 'tmp') {
|
||||
if (node?.data?.type === 'tmp') {
|
||||
// 临时节点不展示浮动菜单
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
currentTreePath.value = getCurrentTreePath();
|
||||
setTimeout(() => {
|
||||
window.minder.execCommand('camera', root);
|
||||
}, 100); // TODO:暂未知渲染时机,临时延迟解决
|
||||
}, 300); // TODO:暂未知渲染时机,临时延迟解决
|
||||
}
|
||||
|
||||
const floatMenuVisible = ref(false);
|
||||
|
|
Loading…
Reference in New Issue