fix(接口调试): 提示信息调整
--bug=1037167 --user=王旭 【接口调试】重命名请求-清空后提交-提示信息错误 https://www.tapd.cn/55049933/s/1483749
This commit is contained in:
parent
88eea99120
commit
7e36fc34d9
|
@ -145,4 +145,6 @@ export default {
|
|||
'common.execute': 'execute',
|
||||
'common.replace': 'replace',
|
||||
'common.value.notNull': 'The attribute value cannot be empty',
|
||||
'common.nameNotNull': 'Name cannot be empty',
|
||||
'common.namePlaceholder': 'Please enter the name and press Enter to save',
|
||||
};
|
||||
|
|
|
@ -146,4 +146,6 @@ export default {
|
|||
'common.execute': '执行',
|
||||
'common.replace': '替换',
|
||||
'common.value.notNull': '属性值不能为空',
|
||||
'common.nameNotNull': '名称不能为空',
|
||||
'common.namePlaceholder': '请输入名称,按回车键保存',
|
||||
};
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
<a-form-item
|
||||
class="hidden-item"
|
||||
field="field"
|
||||
:rules="[{ required: true, message: t('project.fileManagement.nameNotNull') }, { validator: validateName }]"
|
||||
:rules="[{ required: true, message: t('common.nameNotNull') }, { validator: validateName }]"
|
||||
>
|
||||
<a-textarea
|
||||
v-if="props.fieldConfig?.isTextArea"
|
||||
v-model:model-value="form.field"
|
||||
:max-length="props.fieldConfig?.maxLength || 1000"
|
||||
:auto-size="{ maxRows: 4 }"
|
||||
:placeholder="props.fieldConfig?.placeholder || t('project.fileManagement.namePlaceholder')"
|
||||
:placeholder="props.fieldConfig?.placeholder || t('common.namePlaceholder')"
|
||||
class="w-[245px]"
|
||||
@press-enter="beforeConfirm(undefined)"
|
||||
>
|
||||
|
@ -34,7 +34,7 @@
|
|||
v-else
|
||||
v-model:model-value="form.field"
|
||||
:max-length="props.fieldConfig?.maxLength || 255"
|
||||
:placeholder="props.fieldConfig?.placeholder || t('project.fileManagement.namePlaceholder')"
|
||||
:placeholder="props.fieldConfig?.placeholder || t('common.namePlaceholder')"
|
||||
class="w-[245px]"
|
||||
@press-enter="beforeConfirm(undefined)"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue