mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +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']]]
|
||||
let tlsParams = ['use_ssl', 'ca_cert']
|
||||
switch (platform) {
|
||||
case 'Redis':
|
||||
case 'redis':
|
||||
tlsParams = tlsParams.concat(['client_cert', 'client_key'])
|
||||
break
|
||||
case 'MongoDB':
|
||||
case 'mongodb':
|
||||
tlsParams = tlsParams.concat(['client_key', 'allow_invalid_cert'])
|
||||
break
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ export default {
|
||||
params: { id: this.$route.params.id },
|
||||
query: {
|
||||
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') {
|
||||
route.params.id = row.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)
|
||||
}
|
||||
|
@@ -155,7 +155,7 @@ export default {
|
||||
const query = {
|
||||
node: this.$route.query?.node || '',
|
||||
platform: platform.id,
|
||||
platform_type: platform.type.label
|
||||
platform_type: platform.type.value
|
||||
}
|
||||
|
||||
this.$router.push({ name: route, query })
|
||||
|
Reference in New Issue
Block a user