|
发表于 2020-8-12 16:55:24
|
显示全部楼层
把studio关掉,然后删除studio\workspace\.metadata\.plugins 目录,在把studio\workspace\.metadata_bakup\.plugins 这个目录拷到studio\workspace\.metadata\
把studio\dropins\studio-app2\plugins\plugin\lib\cef1\chromium.jar这个jar包复制到studio\dropins\studio-app2\plugins\plugin\lib下
修改 /UI2/system/components/designerCommon/js/webSocketMng.js去掉最后一段(重写alert和重写confirm),重启studio看看
if(navigator.userAgent.toLowerCase().match(/chrome/) != null && mng.getRequestParameter("port") && !mng.webIde){
//重写alert
var oldAerlt = window["alert"];
window["alert"] = function(msg){
mng.callJava({alertMsg:msg,async:false});
}
//重写confirm
var oldConfirm = window["confirm"];
window["confirm"] = function(msg,title){
var result = mng.callJava({confirmMsg:msg,async:false});
return result===true;
}
}
|
|