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 + }) } } })