We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813764e commit 4bd3e28Copy full SHA for 4bd3e28
lib/index.js
@@ -61,7 +61,8 @@ Toast.install = function (Vue, options) {
61
Vue.prototype.$loading = function (tips, type) {
62
if (type == 'close') {
63
loadNode.show = showLoad = false;
64
- document.querySelector('.lx-load-mark').remove();
+ var markNode = document.querySelector('.lx-load-mark');
65
+ if (markNode) markNode.remove();
66
} else {
67
if (showLoad) {
68
// 如果loading还在,则不再执行
@@ -89,4 +90,4 @@ Toast.install = function (Vue, options) {
89
90
}
91
});
92
-module.exports = Toast;
93
+module.exports = Toast;
0 commit comments