Skip to content

Conversation

@shaohuzhang1
Copy link
Contributor

fix: STT model params add when create
fix: Intent node i18n --bug=1062041 --user=张展玮 【应用编排】意图识别的输入下拉框必填提示没有国际化 https://www.tapd.cn/62980211/s/1777709

--bug=1062041 --user=张展玮 【应用编排】意图识别的输入下拉框必填提示没有国际化 https://www.tapd.cn/62980211/s/1777709
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 23, 2025

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.

Details

Instructions 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.

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Sep 23, 2025

[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.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

required: true,
}"
>
<template #label>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@zhanweizhang7 zhanweizhang7 deleted the pr@v2@fix_intent_node_i18n branch September 23, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants