fix: 创建网关找不到平台

This commit is contained in:
feng
2023-03-13 16:48:44 +08:00
parent c75f0b1312
commit f44618d915

View File

@@ -84,7 +84,7 @@ export default {
connectivity: connectivityMeta,
actions: {
formatterArgs: {
updateRoute: { name: 'GatewayUpdate', query: { domain: this.object.id }},
updateRoute: { name: 'GatewayUpdate', query: { domain: this.object.id, platform_type: 'linux' }},
performDelete: ({ row }) => {
const id = row.id
const url = `/api/v1/assets/gateways/${id}/`
@@ -128,7 +128,8 @@ export default {
createRoute: {
name: 'GatewayCreate',
query: {
domain: this.object.id
domain: this.object.id,
platform_type: 'linux'
}
}
},