mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 优化创建资产时模版导入账号
This commit is contained in:
@@ -32,7 +32,7 @@ export default {
|
||||
form: this.account || { },
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['name', 'username', 'privileged']],
|
||||
[this.$t('assets.Secret'), ['secret_type', 'password', 'ssh_key', 'token', 'api_key', 'passphrase']],
|
||||
[this.$t('assets.Secret'), ['secret_type', 'secret', 'ssh_key', 'token', 'api_key', 'passphrase']],
|
||||
[this.$t('common.Other'), ['push_now', 'comment']]
|
||||
],
|
||||
defaultPrivilegedAccounts: ['root', 'administrator'],
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
{
|
||||
prop: 'protocols',
|
||||
formatter: function(row) {
|
||||
return <span> {row.protocols.toString()} </span>
|
||||
return <span> {row.protocols?.toString()} </span>
|
||||
},
|
||||
label: this.$t('assets.Protocols')
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
},
|
||||
cellValue: {
|
||||
type: [String, Number],
|
||||
default: null
|
||||
default: ''
|
||||
},
|
||||
hasShow: {
|
||||
type: Boolean,
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
methods: {
|
||||
switchShowValue() {
|
||||
const value = this.value || this.cellValue
|
||||
return '******' + value.replace(/[\s\S]/g, '')
|
||||
return value ? '******' + value.replace(/[\s\S]/g, '') : ''
|
||||
},
|
||||
onShow() {
|
||||
const { currentValue, switchShowValue } = this
|
||||
|
||||
Reference in New Issue
Block a user