fixed(loading-bar): loading-bar remove

This commit is contained in:
JiwenBai 2019-10-11 20:04:43 +08:00 committed by 07akioni
parent 9cfee6d4f5
commit ba1c5a4aa3
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "0.5.7",
"version": "0.5.8",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -6,7 +6,8 @@ export default {
loadingBarInstance: null,
finishCallback () {
if (this.loadingBarInstance) {
document.body.removeChild(this.loadingBarInstance.$el)
// document.body.removeChild(this.loadingBarInstance.$el)
this.loadingBarInstance.$el.remove()
this.loadingBarInstance.$destroy()
this.loadingBarInstance = null
}