Browse Source

fix: IE dom.remove() not a function

Sendya 6 years ago
parent
commit
8f39724cd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/util.js

+ 1 - 1
src/utils/util.js

@@ -30,6 +30,6 @@ export function removeLoadingAnimate(id = '', timeout = 1500) {
     return
   }
   setTimeout(() => {
-    document.getElementById(id).remove()
+    document.body.removeChild(document.getElementById(id))
   }, timeout)
 }