"TypeError: handler.call is not a function"问题

进入组件页面时,vue报错:Error in mounted hook: "TypeError: handler.call is not a function",

造成报错原因就是生命周期钩子函数mounted: {}是否有声明了未定义方法或是只声名了钩子函数。

处理方法:1.把mounted: {}删除掉,

                  2.把mounted: {}改为mounted(){},

posted @ 2019-07-03 15:06  lwming  阅读(16207)  评论(0编辑  收藏  举报