From 9510897ecc41b3e21798a70cb3733b91450bbc23 Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 28 Apr 2021 12:50:04 +0800 Subject: [PATCH] fix issue --- spug_web/src/pages/host/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/host/store.js b/spug_web/src/pages/host/store.js index 48e881f..c1ae4e4 100644 --- a/spug_web/src/pages/host/store.js +++ b/spug_web/src/pages/host/store.js @@ -44,7 +44,6 @@ class Store { for (let item of this.records) { this.idMap[item.id] = item } - this._makeCounter(); this.refreshCounter() }) .finally(() => this.isFetching = false) @@ -87,6 +86,7 @@ class Store { } refreshCounter = () => { + this._makeCounter(); if (this.treeData.length && this.records.length) { const treeData = lds.cloneDeep(this.treeData); for (let item of treeData) {