feat: 支持设置默认存储(2)

This commit is contained in:
Bai
2021-06-25 18:07:12 +08:00
committed by Jiangjie.Bai
parent 35e0d57a05
commit fa9b4abba1
4 changed files with 10 additions and 2 deletions

View File

@@ -663,6 +663,7 @@
"SiteMessageList": "站内信"
},
"sessions": {
"SetToDefaultStorage": "设置为默认存储",
"SetToDefault": "设为默认",
"SetSuccess": "设置成功",
"SetFailed": "设置失败",

View File

@@ -661,6 +661,7 @@
"SiteMessageList": "Site message"
},
"sessions": {
"SetToDefaultStorage": "Set to default storage",
"SetToDefault": "Set to default",
"SetSuccess": "Set success",
"SetFailed": "Set failed",

View File

@@ -24,13 +24,16 @@ export default {
initial: { type: commandType, doc_type: 'command' },
fields: [
[this.$t('common.Basic'), ['name', 'type', 'meta', 'comment']]
[this.$t('common.Basic'), ['name', 'type', 'meta', 'is_default', 'comment']]
],
fieldsMeta: {
type: {
type: 'select',
disabled: true
},
is_default: {
helpText: this.$t('sessions.SetToDefaultStorage')
},
meta: {
fields: ['HOSTS', 'INDEX', 'IGNORE_VERIFY_CERTS'],
fieldsMeta: {

View File

@@ -39,7 +39,7 @@ export default {
fields: [
[this.$t('common.Basic'), ['name', 'type']],
[storageTypeMeta.title, ['meta']],
[this.$t('common.Other'), ['comment']]
[this.$t('common.Other'), ['is_default', 'comment']]
],
fieldsMeta: {
type: {
@@ -47,6 +47,9 @@ export default {
},
meta: {
fields: storageTypeMeta.meta
},
is_default: {
helpText: this.$t('sessions.SetToDefaultStorage')
}
}
}