Skip to content

Commit

Permalink
Revert "单页面加载不同的页面时会生成多个 load mark,关闭的时候全部移除"
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-xin authored Dec 23, 2017
1 parent e6a3e9c commit 4529145
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ Toast.install = function (Vue, options) {

setTimeout(function () {
toastVM.show = showToast = false;
var elements = document.getElementsByClassName('lx-load-mark');
for (var i = 0; i < elements.length; i++) { // 单页面加载不同的页面时会生成多个 load mark,隐藏的时候全部移除
elements[i].remove()
}
}, opt.duration)
};
['bottom', 'center', 'top'].forEach(function (type) {
Expand Down Expand Up @@ -92,4 +88,4 @@ Toast.install = function (Vue, options) {
}
});
}
module.exports = Toast;
module.exports = Toast;

0 comments on commit 4529145

Please sign in to comment.