small changes

This commit is contained in:
Alireza Ahmadi
2024-06-15 23:22:23 +02:00
parent b5a2dd18f5
commit 7c127f07bb
7 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -143,6 +143,7 @@
</template>
<script lang="ts">
import { i18n } from '@/locales'
import { iTls, defaultInTls } from '@/types/inTls'
export default {
props: ['inbound', 'tlsConfigs', 'tls_id'],
@@ -183,7 +184,7 @@ export default {
return <iTls> this.$props.inbound.tls
},
tlsItems(): any[] {
return [ { title: '', value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )]
return [ { title: i18n.global.t('none'), value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )]
},
tlsId: {
get() { return this.tls_id.value?? 0 },