本文主要是介绍[Vue warn]: data functions should return an object:,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
vue报错
[Vue warn]: data functions should return an object:
[Vue warn]Property "customClass" must be accessed with "$data.customClass" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals
原因使用 ElementUI 的 this.$message.error(res); 导致。message.error()传入的类型错误,
应该为obj、string传入了array
这篇关于[Vue warn]: data functions should return an object:的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!