原文:vue报错Uncaught (in promise) cancel解决办法

原因:this. confirm方法内置promise方法,.catch 不能省略 因为取消操作时,无法捕获 解决:.then res gt ... .catch gt then之后把catch加上 ...

2020-09-02 11:23 0 2234 推荐指数:

查看详情

Vue. 之 报错 Uncaught (in promise)

Vue. 之 报错 Uncaught (in promise)   在点击同一个URL的时候,会报错如下:      解决方案:     在项目目录下运行 npm i vue-router@3.0 -S 即可。      ...

Fri Sep 13 21:00:00 CST 2019 0 2407
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM