提交 2ce07852 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix: Solve the problem that the popAlert component pops up repeatedly

上级 7a208db7
......@@ -120,7 +120,10 @@ Stun.utils = Stun.$u = {
error: 'times-circle'
};
if (!$('.stun-alert')[0]) {
if ($('.stun-message').length !== 0) {
$('.stun-message').remove();
}
var faPrefix = CONFIG.fontawesome.prefix;
var $alert = $(
'<div class="stun-message">' +
......@@ -132,8 +135,6 @@ Stun.utils = Stun.$u = {
);
$('body').append($alert);
}
$(document).ready(function () {
$('.stun-alert')
.velocity('stop')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册