From 7e5095d50961aeed62b7320df9aede08fce686c7 Mon Sep 17 00:00:00 2001 From: likexuan Date: Fri, 7 Apr 2023 10:29:42 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2750=20fix:=20=E8=A7=A3=E5=86=B3AutomaticTa?= =?UTF-8?q?b=20=E9=80=89=E6=8B=A9=E6=A1=86=E8=8E=B7=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/integration/integration-tabs/automatic.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue b/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue index 4806df328..b8ed2d1bc 100644 --- a/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue +++ b/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue @@ -83,9 +83,7 @@ export default { } }, created () { - this.$nextTick(() => { - this.getAssetList() - }) + this.getAssetList() this.token = localStorage.getItem('nz-token') axios.get('/healthy').then(response => { const url = response.request.responseURL @@ -107,10 +105,10 @@ export default { if (response.code === 200) { this.assetList = response.data.list if (this.assetList && this.assetList.length > 0) { - // setTimeout(() => { - this.assetId = String(this.assetList[0].id) - this.loadFinish = true - // }, 100) + this.$nextTick(() => { + this.assetId = String(this.assetList[0].id) + this.loadFinish = true + }) } } })