1、修复项目内容搜索无法查看的BUG

2、新增以服务的方式启动
This commit is contained in:
Minho
2017-06-02 16:08:14 +08:00
parent 8486bb3809
commit d99c24f2c2
9 changed files with 308 additions and 107 deletions

View File

@@ -197,10 +197,13 @@ $(function () {
console.log($param);
}
};
var $node = window.jsTree.jstree().get_selected();
if(typeof $node === "object") {
$node = window.jsTree.jstree().get_node({ id : $node[0] });
events.trigger('article.open',{ $url : $node.a_attr.href , $init : true, $id : $node.a_attr.id });
try {
var $node = window.jsTree.jstree().get_selected();
if (typeof $node === "object") {
$node = window.jsTree.jstree().get_node({id: $node[0]});
events.trigger('article.open', {$url: $node.a_attr.href, $init: true, $id: $node.a_attr.id});
}
}catch (e){
console.log(e);
}
});