mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
fix: 使用type
This commit is contained in:
committed by
Jiangjie.Bai
parent
7a724e76b7
commit
3b17b44de5
@@ -47,10 +47,10 @@ export default {
|
|||||||
const baseFields = [[this.$t('common.Basic'), ['db_name']]]
|
const baseFields = [[this.$t('common.Basic'), ['db_name']]]
|
||||||
let tlsParams = ['use_ssl', 'ca_cert']
|
let tlsParams = ['use_ssl', 'ca_cert']
|
||||||
switch (platform) {
|
switch (platform) {
|
||||||
case 'Redis':
|
case 'redis':
|
||||||
tlsParams = tlsParams.concat(['client_cert', 'client_key'])
|
tlsParams = tlsParams.concat(['client_cert', 'client_key'])
|
||||||
break
|
break
|
||||||
case 'MongoDB':
|
case 'mongodb':
|
||||||
tlsParams = tlsParams.concat(['client_key', 'allow_invalid_cert'])
|
tlsParams = tlsParams.concat(['client_key', 'allow_invalid_cert'])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@@ -57,7 +57,7 @@ export default {
|
|||||||
params: { id: this.$route.params.id },
|
params: { id: this.$route.params.id },
|
||||||
query: {
|
query: {
|
||||||
platform: this.asset.platform.id,
|
platform: this.asset.platform.id,
|
||||||
platform_type: this.asset.type.label
|
platform_type: this.asset.type.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@@ -72,7 +72,7 @@ export default {
|
|||||||
} else if (action === 'Update') {
|
} else if (action === 'Update') {
|
||||||
route.params.id = row.id
|
route.params.id = row.id
|
||||||
route.query.platform = row.platform.id
|
route.query.platform = row.platform.id
|
||||||
route.query.platform_type = row.type.label
|
route.query.platform_type = row.type.value
|
||||||
}
|
}
|
||||||
vm.$router.push(route)
|
vm.$router.push(route)
|
||||||
}
|
}
|
||||||
|
@@ -155,7 +155,7 @@ export default {
|
|||||||
const query = {
|
const query = {
|
||||||
node: this.$route.query?.node || '',
|
node: this.$route.query?.node || '',
|
||||||
platform: platform.id,
|
platform: platform.id,
|
||||||
platform_type: platform.type.label
|
platform_type: platform.type.value
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$router.push({ name: route, query })
|
this.$router.push({ name: route, query })
|
||||||
|
Reference in New Issue
Block a user