From ba1c5a4aa325a9b42dad81f3ca9af03135fe988e Mon Sep 17 00:00:00 2001 From: JiwenBai Date: Fri, 11 Oct 2019 20:04:43 +0800 Subject: [PATCH] fixed(loading-bar): loading-bar remove --- package.json | 2 +- packages/common/LoadingBar/src/main.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 407d81200..643b34078 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui", - "version": "0.5.7", + "version": "0.5.8", "description": "", "main": "index.js", "scripts": { diff --git a/packages/common/LoadingBar/src/main.js b/packages/common/LoadingBar/src/main.js index 35c1a05eb..dd82fd14e 100644 --- a/packages/common/LoadingBar/src/main.js +++ b/packages/common/LoadingBar/src/main.js @@ -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 }