Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

撤回功能存在问题 #8

Open
zhangxk123 opened this issue Oct 8, 2022 · 3 comments
Open

撤回功能存在问题 #8

zhangxk123 opened this issue Oct 8, 2022 · 3 comments

Comments

@zhangxk123
Copy link

version:1.1.3
场景:删除节点
kityminder.core.js?f21e:2413 Uncaught TypeError: Cannot read properties of undefined (reading 'parent')
at Minder.removeNode (kityminder.core.js?f21e:2413:1)
at applyPatch (kityminder.core.js?f21e:2617:1)
at Minder.applyPatches (kityminder.core.js?f21e:2653:1)
at Object.undo [as action] (history.js?1417:128:1)
at execute (hotbox.js?1895:608:1)
at eval (hotbox.js?1895:535:1)
at Array.forEach ()
at HotBoxState.handleKeyEvent (hotbox.js?1895:522:1)
at HotBox._dispatchKey (hotbox.js?1895:174:1)
at eval (hotbox.js?8316:29:1)

@zhangxk123
Copy link
Author

zhangxk123 commented Oct 8, 2022

我将kity和kityminder-core的依赖包换成百度脑图的,就没这个问题了

import 'kity'
import 'kityminder-core'
// require('@7polo/kity/dist/kity.js');
// require('@7polo/kityminder-core');

@fengxian0513
Copy link

我将kity和kityminder-core的依赖包换成百度脑图的,就没这个问题了

import 'kity' import 'kityminder-core' // require('@7polo/kity/dist/kity.js'); // require('@7polo/kityminder-core');

你好,想详细请教下如何更换为百度脑图的依赖包

@zhangxk123
Copy link
Author

  1. npm install kity && npm install kityminder-core
  2. 在src/index.js文件 ,将
require('@7polo/kity/dist/kity.js');
require('@7polo/kityminder-core');

替换为

import 'kity';
import 'kityminder-core';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants