Skip to content

Conversation

@shaohuzhang1
Copy link
Contributor

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.

In the provided code snippet, there is an issue with duplicate rules defined for the content_list field. Specifically, you have two instances of the same rule:

required: true,

This will cause validation errors because rules should be unique within a component's rules object.

Additionally, the order of these lines might not meet your expected logic. If both fields need to be validated and are required, they should likely share the same validation rule.

Here is improved version of the rule definition:

:rules="{
  content_list: [
    {
      message: $t('views.applicationWorkflow.nodes.textToSpeechNode.content.label'),
      trigger: 'change'
    },
    { required: true }
  ]
}"

Explanation:

  • Combined two identical validations into one array under content_list.
  • Used {} instead of single quotes around the array to avoid syntax errors in Vue templates.

These changes ensure that the form checks the value change on content_list, and if it’s empty (not valid according to $t('views.applicationWorkflow.nodes.textToSpeechNode.content.label')), then also considers it as invalid due to required: true`.

@zhanweizhang7 zhanweizhang7 merged commit 9b00b85 into v2 Sep 23, 2025
4 of 6 checks passed
@zhanweizhang7 zhanweizhang7 deleted the pr@v2@fix_intent_node_i18n branch September 23, 2025 06:44
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