修正打开 launchpad 点击app无法关闭launchpad的bug

This commit is contained in:
muzi_ys 2022-12-06 12:16:23 +08:00
parent 219111fd80
commit ad0673f8a8
2 changed files with 4 additions and 4 deletions

View File

@ -353,7 +353,6 @@ window.Macui = {
}, 500) }, 500)
}); });
$("#mac .launchpad").click(function () { $("#mac .launchpad").click(function () {
console.log(2222)
if ($("#launchpad").hasClass("hidden")) { if ($("#launchpad").hasClass("hidden")) {
Macui.renderLaunchpad(); Macui.renderLaunchpad();
Macui.menuClose(); Macui.menuClose();
@ -883,7 +882,9 @@ window.Macui = {
}, },
//close Launchpad //close Launchpad
closeLaunchpad: function () { closeLaunchpad: function () {
if ($("#launchpad").hasClass("show")){
$("#launchpad").removeClass("show").addClass("hidden").hide(); $("#launchpad").removeClass("show").addClass("hidden").hide();
}
}, },
//消息中心渲染 //消息中心渲染
renderCommand: function (todayHtml = null) { renderCommand: function (todayHtml = null) {
@ -1241,7 +1242,6 @@ window.Macui = {
this.menuClose(); this.menuClose();
this.commandCenterClose(); this.commandCenterClose();
this.closeLaunchpad();
return index; return index;
}, },
closeAll: function () { closeAll: function () {

2
js/index.min.js vendored

File diff suppressed because one or more lines are too long