There was an error while loading. Please reload this page.
2 parents ce0a4df + 6298b58 commit 2abb118Copy full SHA for 2abb118
lib/index.js
@@ -62,7 +62,13 @@ Toast.install = function (Vue, options) {
62
if (type == 'close') {
63
loadNode.show = showLoad = false;
64
var markNode = document.querySelector('.lx-load-mark');
65
- if (markNode) markNode.remove();
+ if (markNode) {
66
+ if (typeof markNode.remove === 'function') {
67
+ markNode.remove();
68
+ } else { // IE have not remove
69
+ markNode.parentNode.removeChild(markNode);
70
+ }
71
72
} else {
73
if (showLoad) {
74
// 如果loading还在,则不再执行
@@ -90,4 +96,4 @@ Toast.install = function (Vue, options) {
90
96
}
91
97
});
92
98
93
-module.exports = Toast;
99
+module.exports = Toast;
0 commit comments