fix:修改集成升级命令
This commit is contained in:
@@ -105,10 +105,10 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.assetList = response.data.list
|
this.assetList = response.data.list
|
||||||
if (this.assetList && this.assetList.length > 0) {
|
if (this.assetList && this.assetList.length > 0) {
|
||||||
this.$nextTick(() => {
|
setTimeout(() => {
|
||||||
this.assetId = String(this.assetList[0].id)
|
this.assetId = String(this.assetList[0].id)
|
||||||
this.loadFinish = true
|
this.loadFinish = true
|
||||||
})
|
}, 100)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
<div class="step-right">
|
<div class="step-right">
|
||||||
<h4>{{$t('integration.uploadTalon')}}</h4>
|
<h4>{{$t('integration.uploadTalon')}}</h4>
|
||||||
<div class="command-box">
|
<div class="command-box">
|
||||||
<el-input :disabled="true" :value="uploadCommand" size="small">
|
<el-input :disabled="true" :value="newCommand" size="small">
|
||||||
<i slot="suffix" class="nz-icon nz-icon-override" @click="copyUrl(uploadCommand)" :title="$t('overall.copyText')"></i>
|
<i slot="suffix" class="nz-icon nz-icon-override" @click="copyUrl(newCommand)" :title="$t('overall.copyText')"></i>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
<h4 style="margin-top:15px">{{$t('integration.installed')}}</h4>
|
<h4 style="margin-top:15px">{{$t('integration.installed')}}</h4>
|
||||||
@@ -75,8 +75,8 @@
|
|||||||
<div class="step-right">
|
<div class="step-right">
|
||||||
<h4>{{$t('integration.uploadTalon')}}</h4>
|
<h4>{{$t('integration.uploadTalon')}}</h4>
|
||||||
<div class="command-box">
|
<div class="command-box">
|
||||||
<el-input :disabled="true" :value="uploadCommand" size="small">
|
<el-input :disabled="true" :value="upgradeCommand" size="small">
|
||||||
<i slot="suffix" class="nz-icon nz-icon-override" @click="copyUrl(uploadCommand)" :title="$t('overall.copyText')"></i>
|
<i slot="suffix" class="nz-icon nz-icon-override" @click="copyUrl(upgradeCommand)" :title="$t('overall.copyText')"></i>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +104,8 @@ export default {
|
|||||||
name: 'redHat'
|
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'
|
tokenCommand: 'cat /opt/nezha/nz-talon/config/token.auth'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user