diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index 3c4742d64b20..cb9f4a6dce76 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -1940,18 +1940,16 @@ export default { this.form.userdataid = undefined return } + this.form.userdataid = id this.userDataParams = [] api('listUserData', { id: id }).then(json => { const resp = json?.listuserdataresponse?.userdata || [] if (resp[0]) { - var params = resp[0].params - if (params) { - var dataParams = params.split(',') - } - var that = this - dataParams.forEach(function (val, index) { - that.userDataParams.push({ + const params = resp[0].params + const dataParams = params ? params.split(',') : [] + dataParams.forEach((val, index) => { + this.userDataParams.push({ id: index, key: val }) diff --git a/ui/src/views/compute/wizard/LoadBalancerSelection.vue b/ui/src/views/compute/wizard/LoadBalancerSelection.vue index e2ffb991e987..3ba66241d56b 100644 --- a/ui/src/views/compute/wizard/LoadBalancerSelection.vue +++ b/ui/src/views/compute/wizard/LoadBalancerSelection.vue @@ -30,6 +30,7 @@ :rowKey="record => record.id" :pagination="false" :rowSelection="rowSelection" + :customRow="onClickRow" size="middle" :scroll="{ y: 225 }">