mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
fix: Linux Platform id is not 1, create gateway error
This commit is contained in:
@@ -131,7 +131,7 @@ export default {
|
|||||||
const { defaultConfig } = this
|
const { defaultConfig } = this
|
||||||
const { node, platform } = this.$route?.query || {}
|
const { node, platform } = this.$route?.query || {}
|
||||||
const nodesInitial = node ? [node] : []
|
const nodesInitial = node ? [node] : []
|
||||||
const platformId = platform || 1
|
const platformId = platform || 'Linux'
|
||||||
const url = `/api/v1/assets/platforms/${platformId}/`
|
const url = `/api/v1/assets/platforms/${platformId}/`
|
||||||
this.platform = await this.$axios.get(url)
|
this.platform = await this.$axios.get(url)
|
||||||
const initial = {
|
const initial = {
|
||||||
|
Reference in New Issue
Block a user