[Vue warn]: Method "watch" has type "object" in the component definition. Did you reference the function correctly?

发生这个的原因是在组件中写了一个空的watch

把这个watch的代码删掉就ok

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐