Skip to content

Commit 4529145

Browse files
authored
Revert "单页面加载不同的页面时会生成多个 load mark,关闭的时候全部移除"
1 parent e6a3e9c commit 4529145

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ Toast.install = function (Vue, options) {
5050

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

0 commit comments

Comments
 (0)