this.getList is not a function
时间: 2023-09-21 14:09:20 浏览: 44
这个错误提示表明在Vue的created钩子函数中,this.getList不是一个函数。这可能是因为在你的代码中,methods中没有定义getList方法,或者getList方法的拼写错误。你需要检查一下你的代码,确保getList方法正确定义并且拼写正确。另外,你也可以参考引用\[1\]和引用\[2\]中提到的错误信息,以及引用\[3\]中提供的Vue面试必备专栏,来找到解决这个问题的更多信息。
#### 引用[.reference_title]
- *1* [[Vue warn]: Error in created hook: “TypeError: this.getList is not a function](https://blog.csdn.net/Dzb1993/article/details/122912670)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [解决:Vue项目中报错为 “TypeError: _this2.getListFn is not a function“ 或 Property or method ...](https://blog.csdn.net/weixin_43405300/article/details/123922961)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]