UI: fix missing networkid and zoneid when add instance from vpc network (#7151)

This commit is contained in:
Wei Zhou 2023-02-01 10:58:19 +01:00 committed by GitHub
parent c78a777d3a
commit bcf5ff1ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
type="dashed"
style="margin-bottom: 15px; width: 100%"
:disabled="!('deployVirtualMachine' in $store.getters.apis)"
@click="$router.push({ path: '/action/deployVirtualMachine?networkid=' + network.id + '&zoneid=' + network.zoneid })">
@click="$router.push({ path: '/action/deployVirtualMachine', query: { networkid: network.id, zoneid: network.zoneid } })">
<template #icon><plus-outlined /></template>
{{ $t('label.vm.add') }}
</a-button>