Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createBy') at eval (index.vue:174:1)
时间: 2023-10-17 20:26:59 浏览: 141
根据引用的内容,该报错提示是"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')",这个错误是因为在代码中尝试对未定义的属性进行操作,具体是对一个未定义的对象进行了map操作。要解决这个问题,可以先确保操作的对象是定义的并有正确的值。
而根据引用的内容,报错"Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createBy')",这个错误提示是在代码中尝试读取未定义的属性"createBy"。解决这个问题的方法是确保所使用的对象中包含了名为"createBy"的属性,并且该属性有正确的值。
所以,你可以通过检查代码中相关对象的定义和赋值情况来解决这两个报错。确保操作的对象都是定义的,并具有正确的属性和值。<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 ]
阅读全文