Conversation
--bug=1062041 --user=张展玮 【应用编排】意图识别的输入下拉框必填提示没有国际化 https://www.tapd.cn/62980211/s/1777709
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| required: true, | ||
| }" | ||
| > | ||
| <template #label> |
There was a problem hiding this comment.
It looks like you're trying to define a validation rule for an input field within a Vue component. However, there seems to be an issue with the order and structure of the rules:
<el-form-item
prop="content_list"
:label="$t('views.applicationWorkflow.nodes.intentNode.input.label')"
:rules="{
required: true,
message: $t('views.applicationWorkflow.nodes.textToSpeechNode.content.label'),
trigger: 'change'
}"
>The required property is repeated twice, which can lead to unexpected behavior. If you want both conditions (message and required) to apply, you should only include one instance of the required property or use separate properties if necessary.
Additionally, ensure that $t('views.applicationWorkflow.nodes.intentNode.input.label') returns the correct text label and that $t('views.applicationWorkflow.nodes.textToSpeechNode.content.label') correctly retrieves the error message. Here's a corrected version:
<el-form-item
prop="content_list"
:label="$t('views.applicationWorkflow.nodes.intentNode.input.label')"
:rules="[
{ required: true, message: $t('views.applicationWorkflow.nodes.textToSpeechNode.content.label'), trigger: 'change' }
]"
>This way, the form item will require an entry and display a custom error message when it fails validation.
fix: STT model params add when create
fix: Intent node i18n --bug=1062041 --user=张展玮 【应用编排】意图识别的输入下拉框必填提示没有国际化 https://www.tapd.cn/62980211/s/1777709