index.vue:27 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'nickname')
时间: 2023-10-17 22:28:41 浏览: 162
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#Object‘的解决方法
根据您提供的引用内容,index.vue:27出现了一个错误,具体是Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'nickname')。根据报错信息来看,这个错误是因为尝试读取一个未定义的属性'nickname'导致的。根据引用中的信息,可能是因为在使用getters简化数据时,忽略了state.goodsInfo初始值为空对象,导致属性'nickname'为undefined。因此,您需要确保在使用该属性之前,先检查它是否已定义,以避免出现这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [报错 | vue.runtime.esm....c320:4560 [Vue warn]: Error in render: “TypeError: Cannot read properties of](https://blog.csdn.net/muziqwyk/article/details/126191223)[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* *3* [vue Export2Excel 实现excel导出](https://blog.csdn.net/Kiritovo/article/details/125621801)[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 ]
阅读全文