//报错的代码
//$('#orgTree').mCustomScrollbar('destroy');
//解决方法
//修改后的代码
try{
!!$("#orgTree").data("mCS") && $("#orgTree").mCustomScrollbar("destroy"); //Destroy
}catch (e){
$("#orgTree").data("mCS",''); //手动销毁
//console.log(e);
}