this.$modal.confirm 报错
时间: 2023-09-11 10:03:16 浏览: 135
根据您提供的引用内容,您遇到的问题是在使用`this.$modal.confirm`时报错。根据引用,控制台报错可能是由于使用了`this.$confirm`而不是`this.$modal.confirm`。请您确认代码中是否使用了正确的方法名。另外,引用中提到的解决方案是在`.then()`后添加`.catch(() => {})`来捕获错误。您可以尝试在代码中添加这个`catch`语句来处理错误。希望这些信息对您有帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [element-ui 弹框this.$confirm报错Uncaught (in promise) cancel](https://blog.csdn.net/qq_45268602/article/details/117128547)[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: 50%"]
- *2* [使用this.$modal.confirm进行二次触发时会出现第二个对话框闪退的问题](https://blog.csdn.net/qq_44768564/article/details/111995149)[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: 50%"]
[ .reference_list ]
阅读全文