From 33411ae46b276a61fef42c89bdab0d6491c3cb2a Mon Sep 17 00:00:00 2001 From: vapao Date: Fri, 15 Jul 2022 20:19:16 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=88=86?= =?UTF-8?q?=E9=85=8D=E4=B8=BB=E6=9C=BA=E6=9D=83=E9=99=90=E7=9A=84=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=88=B7=E5=8F=AF=E8=83=BD=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=99=BD=E5=B1=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 6a119677..ad6c97e1 100644 --- a/spug_web/src/pages/host/store.js +++ b/spug_web/src/pages/host/store.js @@ -111,7 +111,7 @@ class Store { this.rawRecords.map(item => this.idMap[item.id] = item); this.groups = res2.groups; this.rawTreeData = res2.treeData; - this.group = this.treeData[0]; + this.group = this.treeData[0] || {}; })) .finally(() => { this.isFetching = false;