openingReport.vue:8 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'paperTitle')
时间: 2023-09-21 11:09:59 浏览: 169
Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#Object‘的解决方法
这个报错是出现在openingReport.vue文件的第8行,错误信息是"Uncaught (in promise) TypeError: Cannot read properties of null (reading 'paperTitle')"。根据引用和引用中的信息,这个错误可能是由于尝试读取一个值为null的属性引起的。可能是在程序中没有正确地初始化或赋值'paperTitle'属性导致的。我建议您检查openingReport.vue文件中的代码,确保在使用'paperTitle'属性之前已经对其进行了正确的初始化或赋值。此外,您可以尝试按照引用中的提示,在axios请求拦截器中添加相应的代码来检查请求的配置和错误信息,以便更好地调试和解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [web前端Vue 报错:Uncaught (in promise) TypeError: Cannot read properties of nu](https://blog.csdn.net/Life_s/article/details/126766562)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#<...](https://download.csdn.net/download/weixin_38536267/12778353)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Vue报错:Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘cancelToken...](https://blog.csdn.net/weixin_42343966/article/details/128454897)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文