this.$confirm Converting circular structure to JSON
时间: 2023-09-28 20:08:10 浏览: 119
this.$confirm出现的错误是"Converting circular structure to JSON"。这个错误是因为在Vue3中使用this.$confirm方法时,传递了一个循环引用的对象,导致无法将其转换为JSON格式。解决办法是重新序列化分配给子组件的值,例如对于global.showdata[index],可以重新序列化该值以断开与父组件的绑定关系,并在返回到父列表时使用this.$forceUpdate()来更新组件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [vue3 报错合集](https://blog.csdn.net/xiao_cheng_/article/details/122595601)[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%"]
- *3* [使用Vue的时候记录一个教训](https://blog.csdn.net/u011866450/article/details/104869560)[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 ]
阅读全文