79636493

Date: 2025-05-24 06:58:41
Score: 3
Natty:
Report link

Your code is not complete, this is just my guess.

setup() is vue3 syntax, also called combinatorial api, data(){} is an early vue2 function, you seem to be mixing it up here. I'm not sure what the outermost return{} means?

You can visit the link below to know a little bit about the usage in setup. By the way of course this is one of the ways to write vue

https://stackblitz.com/edit/vitejs-vite-gbsseybj?file=src%2FApp.vue

Reasons:
  • Blacklisted phrase (1): the link below
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: jinmokai