mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-03 07:54:45 +00:00
[fix]修复创建资产组件异常
This commit is contained in:
@@ -14,18 +14,18 @@ export default {
|
|||||||
return {
|
return {
|
||||||
initial: {
|
initial: {
|
||||||
is_active: true,
|
is_active: true,
|
||||||
platform: 'linux'
|
platform: 'Linux'
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('assets.Basic'), ['hostname', 'ip', 'platform', 'public_ip', 'domain']],
|
[this.$t('assets.Basic'), ['hostname', 'ip', 'platform', 'public_ip', 'domain']],
|
||||||
[this.$t('assets.Protocols'), ['protocols']],
|
[this.$t('assets.Protocols'), ['protocol']],
|
||||||
[this.$t('assets.Auth'), ['admin_user']],
|
[this.$t('assets.Auth'), ['admin_user']],
|
||||||
[this.$t('assets.Node'), ['nodes']],
|
[this.$t('assets.Node'), ['nodes']],
|
||||||
[this.$t('assets.Label'), ['labels']],
|
[this.$t('assets.Label'), ['labels']],
|
||||||
[this.$t('assets.Other'), ['is_active', 'comment']]
|
[this.$t('assets.Other'), ['is_active', 'comment']]
|
||||||
],
|
],
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
protocols: {
|
protocol: {
|
||||||
component: CustomInput
|
component: CustomInput
|
||||||
},
|
},
|
||||||
platform: {
|
platform: {
|
||||||
|
Reference in New Issue
Block a user