[Vuejs]-How can I use a function in an object returned by the setup function to modify a value in an object returned by the setup function?

1👍

I found the answer, it’s right there in the Vue documentation but I didn’t realize that it’s the answer:

refs returned from setup are automatically shallow unwrapped when accessed in the template so you do not need to use .value when accessing them. They are also unwrapped in the same way when accessed on this.

Leave a comment