diff --git a/_server/vm.js b/_server/vm.js index 4c1644bf..ba4e640e 100644 --- a/_server/vm.js +++ b/_server/vm.js @@ -168,6 +168,7 @@ var clear = new Vue({ methods: { clearMap: function(){ editor.mapInit(); + editor.updateMap(); clearTimeout(editArea.formatTimer); clearTimeout(tip.timer); pout.value = ''; diff --git a/libs/core.js b/libs/core.js index c659d2d6..12ac4980 100644 --- a/libs/core.js +++ b/libs/core.js @@ -3615,7 +3615,7 @@ core.prototype.isset = function (val) { ////// 播放背景音乐 ////// core.prototype.playBgm = function (bgm) { - + if (main.mode!='play')return; // 如果不允许播放 if (!core.musicStatus.bgmStatus) return; // 音频不存在 @@ -3666,7 +3666,7 @@ core.prototype.pauseBgm = function () { ////// 恢复背景音乐的播放 ////// core.prototype.resumeBgm = function () { - + if (main.mode!='play')return; // 如果不允许播放 if (!core.musicStatus.bgmStatus) return; @@ -3691,7 +3691,7 @@ core.prototype.resumeBgm = function () { ////// 播放音频 ////// core.prototype.playSound = function (sound) { - + if (main.mode!='play')return; // 如果不允许播放 if (!core.musicStatus.soundStatus) return; // 音频不存在 @@ -3730,6 +3730,11 @@ core.prototype.show = function (obj, speed, callback) { return; } obj.style.display = 'block'; + if (main.mode!='play'){ + obj.style.opacity = 1; + if (core.isset(callback)) {callback();} + return; + } obj.style.opacity = 0; var opacityVal = 0; var showAnimate = window.setInterval(function () { @@ -3750,6 +3755,11 @@ core.prototype.hide = function (obj, speed, callback) { obj.style.display = 'none'; return; } + if (main.mode!='play'){ + obj.style.display = 'none'; + if (core.isset(callback)) {callback();} + return; + } var opacityVal = 1; var hideAnimate = window.setInterval(function () { opacityVal -= 0.03;