Compare commits

..

No commits in common. "e586755b75afe8dfd3b7db815962dcbe8c4e3748" and "049768c8b68acb627ef82f2149c5b620fae85811" have entirely different histories.

1 changed files with 1 additions and 5 deletions

View File

@ -98,8 +98,6 @@ const emitChangeBook = async () => {
let curData = cloneDeep(toRaw(curNode.data))
let parentNode = findParentByChildId(treeData.value, curData.id)
curData.parentNode = toRaw(parentNode)
//label label
curData.label = curData.itemtitle
const data = {
textBook: {
curBookId: curBook.data.id,
@ -162,9 +160,7 @@ const handleNodeClick = (data, node) => {
* data : 当前节点数据
* node : 当前节点对象 包含当前节点所有数据 parent属性 指向父节点Node对象
*/
let nodeData = cloneDeep(toRaw(data));
//label label
nodeData.label = nodeData.itemtitle
const nodeData = cloneDeep(toRaw(data));
const parentNode = node.parent.data;
// parentNode
if (Array.isArray(parentNode)) {