Uncaught (in promise) TypeError:Cannot read properties of undefined (reading 'then')
时间: 2023-08-25 21:18:43 浏览: 133
这个错误是由于在调用`.then()`之前未正确使用Promise对象造成的。根据引用和引用的内容,我们可以发现解决这个问题的关键是确保在调用`.then()`之前正确使用`resolve()`和`reject()`。具体来说,你需要将`resolve(data<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘comcode‘)](https://blog.csdn.net/jungeCSND/article/details/130059965)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Uncaught (in promise)和Uncaught (in promise) TypeError: Cannot read properties of undefined (readin](https://blog.csdn.net/weixin_40476233/article/details/126107676)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文