|
在这个文件中修改servers/webServer/o2_core/o2/xDesktop/$all.min.js
备份源文件,下载并重新格式化文件,大约在8369行 close 函数中添加下列代码,懂js优化的同学位置可以稍微调整,然后再重新压缩js文件,覆盖上传。
close: function (hasTaskitem) {
if (this.inBrowser) {
this.desktop.refreshApp(this.desktop.appCurrentList[0]); // 刷新首页即第一个tab
window.open("", "_self").close();
window.close();
} else {
this.fireAppEvent("queryClose");
this.setUncurrent();
this.window.close(function () {
if (!hasTaskitem) this.taskitem.destroy();
this.window = null;
this.taskitem = null;
if (this.resizeFun) layout.desktop.removeEvent("resize", this.resizeFun);
this.desktop.refreshApp(this.desktop.appCurrentList[0]); // 刷新首页即第一个tab
this.desktop.closeApp(this, hasTaskitem);
this.fireAppEvent("postClose");
o2.release(this);
}.bind(this));
}
}, |
|