[vue3 common error 4] Vue warn

View warning

Unable to detect changes Vue 3 is optimized for a responsive system, but this can also cause this warning to appear in some cases.

Workarounds include:

  • Use objects or functions in the data function to return responsive data, avoiding returning an object directly.
  • Use the $set method to add new property values.
  • Use appropriate hooks (such as mounted ) to ensure that DOM elements are properly mounted.

Guess you like

Origin blog.csdn.net/qq_37609787/article/details/130768112