From a3e9d5ba73d64dd933330125cc29ef7280401b81 Mon Sep 17 00:00:00 2001 From: zyh Date: Mon, 13 Mar 2023 17:42:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E9=9B=86?= =?UTF-8?q?=E6=88=90=E5=8D=87=E7=BA=A7=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/integration/integration-tabs/automatic.vue | 4 ++-- .../page/integration/integration-tabs/manual.vue | 11 ++++++----- 2 files changed, 8 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 3b84777c4..91b07d0c5 100644 --- a/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue +++ b/nezha-fronted/src/components/page/integration/integration-tabs/automatic.vue @@ -105,10 +105,10 @@ export default { if (response.code === 200) { this.assetList = response.data.list if (this.assetList && this.assetList.length > 0) { - this.$nextTick(() => { + setTimeout(() => { this.assetId = String(this.assetList[0].id) this.loadFinish = true - }) + }, 100) } } }) diff --git a/nezha-fronted/src/components/page/integration/integration-tabs/manual.vue b/nezha-fronted/src/components/page/integration/integration-tabs/manual.vue index fe878ee60..063bf64bb 100644 --- a/nezha-fronted/src/components/page/integration/integration-tabs/manual.vue +++ b/nezha-fronted/src/components/page/integration/integration-tabs/manual.vue @@ -22,8 +22,8 @@

{{$t('integration.uploadTalon')}}

- - + +

{{$t('integration.installed')}}

@@ -75,8 +75,8 @@

{{$t('integration.uploadTalon')}}

- - + +
@@ -104,7 +104,8 @@ export default { name: 'redHat' } ], - uploadCommand: 'rpm -ivh nz-talon*.rpm', + newCommand: 'rpm -ivh nz-talon*.rpm', + upgradeCommand: 'rpm -Uvh nz-talon*.rpm', tokenCommand: 'cat /opt/nezha/nz-talon/config/token.auth' }