mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 15:07:43 +00:00
Merge branch 'v3' of github.com:jumpserver/lina into v3
This commit is contained in:
@@ -83,7 +83,7 @@ export default {
|
|||||||
async setInitial() {
|
async setInitial() {
|
||||||
const { defaultConfig } = this
|
const { defaultConfig } = this
|
||||||
const { node, platform } = this.$route?.query || {}
|
const { node, platform } = this.$route?.query || {}
|
||||||
const nodesInitial = node || []
|
const nodesInitial = node ? [node] : []
|
||||||
const platformId = platform || 1
|
const platformId = platform || 1
|
||||||
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)
|
||||||
|
@@ -150,7 +150,12 @@ export default {
|
|||||||
const route = _.capitalize(platform.category.value) + 'Create' || 'HostCreate'
|
const route = _.capitalize(platform.category.value) + 'Create' || 'HostCreate'
|
||||||
this.addToRecentPlatforms(platform)
|
this.addToRecentPlatforms(platform)
|
||||||
this.iVisible = false
|
this.iVisible = false
|
||||||
this.$router.push({ name: route, query: { platform: platform.id }})
|
const query = {
|
||||||
|
node: this.$route.query?.node || '',
|
||||||
|
platform: platform.id
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$router.push({ name: route, query })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user