Skip to content

Commit 81c18d4

Browse files
committed
fix: IE dom.remove() not a function
1 parent 4732358 commit 81c18d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export function removeLoadingAnimate(id = '', timeout = 1500) {
3030
return
3131
}
3232
setTimeout(() => {
33-
document.getElementById(id).remove()
33+
document.body.removeChild(document.getElementById(id))
3434
}, timeout)
3535
}

0 commit comments

Comments
 (0)