fix(脑图): 脑图展开节点后切换报错

This commit is contained in:
baiqi 2024-06-21 17:44:09 +08:00 committed by Craftsman
parent a0936719c4
commit 8a2d9e273e
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -185,7 +185,7 @@
currentTreePath.value = getCurrentTreePath();
setTimeout(() => {
window.minder.execCommand('camera', root);
}, 100); // TODO:
}, 300); // TODO:
}
const floatMenuVisible = ref(false);