fix: Linux Platform id is not 1, create gateway error

This commit is contained in:
Bai
2024-04-22 15:53:13 +08:00
committed by Bryan
parent 4351d20a1e
commit c93a061852

View File

@@ -131,7 +131,7 @@ export default {
const { defaultConfig } = this
const { node, platform } = this.$route?.query || {}
const nodesInitial = node ? [node] : []
const platformId = platform || 1
const platformId = platform || 'Linux'
const url = `/api/v1/assets/platforms/${platformId}/`
this.platform = await this.$axios.get(url)
const initial = {