Skip to content

In a Vue template, when writing a for loop and using Chinese variables, the parameter passed to the bound event is always the first value of the array. #10542

Closed as not planned
@ken1987

Description

@ken1987

Vue version

3.4.21

Link to minimal reproduction

https://play.vuejs.org/#eNp9kU1OwzAQha8y8qYglVb8rKq04kddwAIQsMMsQjopbhPb8k+oFGXNDbgFew6EOAdjm5YuUHfx+57fvIlbdqb1oPHIRiyzhRHagUXn9YRLUWtlHLRgsIQOSqNq6JG1B1xyWShpHeTGwBgeD/tw9LTWCh80urS3z2U2TKmURweHta5yh3QCyGaimRSVKJbw7J1TcgRtG293XTYMMLoSg+agVGbM2dfnx/f7GwgZZnMGpzGBQBqbMGcTivq1hrQUQoHZcKsD6zNnqXQp5oOFVZJ+QhtmUpiqtajQ3GgnaCnOqFsggeVVpV6vouaMx/5aL16wWP6jL+wqaJzdGrRoGuRsw1xu5ugSnt5f44q+N7BWM1+Rewe8Q6sqHzom27mXM6q95YttL+NTCjl/sNOVQ2nXS4WiwdlFP2f0vBc7Vv+rezw4ife47Fj3A6JWx6E=

Steps to reproduce

  1. in a Vue template, writing a for loop and using Chinese variables
  2. the parameter passed to the bound event
  3. clicking the second button

What is expected?

When clicking the second button, the displayed value is 2.

What is actually happening?

When clicking the second button, the displayed value is 1.

System Info

macOS 12.6.3 / chrome 122

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions