fix: 使用type

This commit is contained in:
jiangweidong
2023-01-30 20:31:43 +08:00
committed by Jiangjie.Bai
parent 7a724e76b7
commit 3b17b44de5
4 changed files with 5 additions and 5 deletions

View File

@@ -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
} }

View File

@@ -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
} }
}) })
} }

View File

@@ -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)
} }

View File

@@ -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 })