Commit 0f9a16d7 by 莫晓莉

打开资源库

parent 961a60c3
...@@ -1205,7 +1205,13 @@ props: ["dragItem"], ...@@ -1205,7 +1205,13 @@ props: ["dragItem"],
}, },
handleNodeClick(data,node){ handleNodeClick(data,node){
console.log('点击当前节点===',node); console.log('点击当前节点===',node);
if(node.data.leaf){
this.curNodeText=node.data.text;//当前节点 this.curNodeText=node.data.text;//当前节点
}else{
this.$message.error('请选择一个资源库!');
return;
}
this.nodePath=data.path;//当前选择数 this.nodePath=data.path;//当前选择数
this.curNodeIconCls=data.iconCls;//当前选中节点 this.curNodeIconCls=data.iconCls;//当前选中节点
console.log('当前节点的文件夹路径:',this.nodePath); console.log('当前节点的文件夹路径:',this.nodePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment