From b069357fec5e3b7fd1cab91b3d6a6ee1498ffa99 Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Wed, 4 Dec 2019 14:34:03 +0800 Subject: [PATCH] stop dumpHierarchy when not in liveScreen mode --- weditor/static/js/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/weditor/static/js/index.js b/weditor/static/js/index.js index 0faafd5..c5765f1 100644 --- a/weditor/static/js/index.js +++ b/weditor/static/js/index.js @@ -652,10 +652,12 @@ window.vm = new Vue({ setTimeout(this.loadLiveHierarchy, 500) return } - this.dumpHierarchy() - .then((source) => { + if (this.liveScreen) { + this.dumpHierarchy() + .then(() => { this.loadLiveHierarchy() }) + } }, loadLiveScreen: function () { var self = this;