Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'push') at eval (Login.vue:57:1)
时间: 2023-10-17 19:29:39 浏览: 182
根据提供的引用内容,报错"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'push') at eval (Login.vue:57:1)"是在Login.vue文件的第57行出现的错误。这个错误的原因是尝试在一个未定义的变量上执行push操作。具体来说,这个错误发生在一个Promise对象中,在该对象的执行过程中,尝试对一个未定义的变量执行push操作,但是undefined对象并没有push方法。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘map‘)](https://blog.csdn.net/weixin_45810306/article/details/129319621)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Vue 报错TypeError: this.$set is not a function 的解决方法](https://download.csdn.net/download/weixin_38550146/12948478)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文