fix: 自定义平台(Redis/MongoDB)无ssl选项

This commit is contained in:
jiangweidong 2023-01-30 18:09:56 +08:00 committed by Jiangjie.Bai
parent 8b3399351c
commit 7a724e76b7
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ export default {
},
methods: {
getAddFields() {
const platform = this.$route.query.platform_name
const platform = this.$route.query.platform_type
const baseFields = [[this.$t('common.Basic'), ['db_name']]]
let tlsParams = ['use_ssl', 'ca_cert']
switch (platform) {

View File

@ -57,7 +57,7 @@ export default {
params: { id: this.$route.params.id },
query: {
platform: this.asset.platform.id,
platform_name: this.asset.platform.name
platform_type: this.asset.type.label
}
})
}

View File

@ -72,7 +72,7 @@ export default {
} else if (action === 'Update') {
route.params.id = row.id
route.query.platform = row.platform.id
route.query.platform_name = row.platform.name
route.query.platform_type = row.type.label
}
vm.$router.push(route)
}

View File

@ -155,7 +155,7 @@ export default {
const query = {
node: this.$route.query?.node || '',
platform: platform.id,
platform_name: platform.name
platform_type: platform.type.label
}
this.$router.push({ name: route, query })