TypeError:handler.call is not a function

https://www.cnblogs.com/lwming/p/11126398.html

进入组件页面是,Vue爆粗:Error in mounted hook:"TypeError:handler.call is not a function"

 

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

处理方法:

1.把mounted:{}删除掉。

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

posted @ 2021-01-08 10:38  alittlecomputer  阅读(366)  评论(0编辑  收藏  举报