Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks中export一个函数,函数return一个ref对象,value是字符串类型,template使用时会莫名多出双引号 Export a function in hooks, which returns a ref object with value being a string type. When using template, double quotes will inexplicably appear #11199

Closed
I-love-learn opened this issue Jun 22, 2024 · 0 comments

Comments

@I-love-learn
Copy link

Vue version

3.4.21

Link to minimal reproduction

https://play.vuejs.org/#eNp9UV1P3DAQ/CtbvwQkLifaPqErVVvxUCQ+xPFoCRnf5mJIbMteh0NR/jtrHxwgAW/JzuzszHgUf7yvh4TiSCyiDsYTRKTkj6Wdz6F17j5Ka3rvAsEIARuYoAmuh4qXqkJamj51ihBwU2gKmmQ1GWcBztQj3CKkiCsgB70i3cLKFFQFgxGoDS6tWzCWMDRKI9/Tzkb2QQF+5ZN7VbUv7U5UB+RrVxg908yASwrGrvf2R8kHeakeVJeQVyvdGqvYJLAKpWAzKu0k7Xvfz/GMhdyEtIv5tgnugH8Ie59p/Aew+DabwUP7+BukKOpSAMxmW6w9PB7HT+3BNC3mTMn6bzTFgaDIgRuzru+is/wQJQjru96bDsOFz7GjFEdQkIyprnMPp2VGIeHBy1y3qO8/mN/FTZ5JcRkwYhhQih1GKqyRtvDJ8hw3/L0De7dKHbO/ADmq61L2uKX9TXbFtt/witv/pWWu4jqebAi5m+dQ2WhmToUvBb/Bvy+iv9r9Uf8se/yk3OLNgCFrcoEM1N8PxfQE00D3SA==

Steps to reproduce

  1. Create a function to return a ref object
  2. import function in .vue
  3. in template use {{ function() }}

What is expected?

String does not display double quotes

What is actually happening?

double quotes

System Info

No response

Any additional comments?

No response

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant