request.js?b775:43 Uncaught (in promise) Error: 抱歉,系统繁忙,请稍后重试! at __webpack_exports__.default (r
Request URL: http://localhost:8888/api/sys/user/null
Request Method: GET
Status Code: 200 OK
Remote Address: 127.0.0.1:8888
Referrer Policy: strict-origin-when-cross-origin
传参调接口发现参数是null 没有接收到参数
Request URL: http://localhost:8888/api/sys/user/null
主要原因是 调用参数的方式如下
async getUserDetailById() {const res = getUserDetailById(this.userId)console.log(res)console.log(1212)}
这边传入的参数 this.userId 是接收到的props参数
错误的主要原因:因为props传参是异步的 而这个请求是在页面created()里面就要调用的方法
解决方法:是在调用方法的时候传入一个id,父组件调用子组件上的方法并且传参!!!
this.$refs.assignRole.getUserDetailById(id)
request.js?b775:43 Uncaught (in promise) Error: 抱歉,系统繁忙,请稍后重试! at __webpack_exports__.default (r相关推荐
- 前端:request.js?b775:105 Uncaught (in promise) Error: nested exception is org.apache.ibatis.exceptions
request.js?b775:105 Uncaught (in promise) Error: nested exception is org.apache.ibatis.exceptions.To ...
- vue-router.esm.js?fe87:2062 Uncaught (in promise) Error: Avoided redundant navigation to current loc
vue报错 vue-router.esm.js?fe87:2062 Uncaught (in promise) Error: Avoided redundant navigation to curre ...
- vue-router.esm.js?8c4f:2008 Uncaught (in promise) Error: Redirected when going from “/login?redirect
vue-router.esm.js?8c4f:2008 Uncaught (in promise) Error: Redirected when going from "/login?red ...
- vue报错vue-router.esm.js?8c4f:2062 Uncaught (in promise) Error: Avoided redundant navigation to curren
在写导航切换时点击会有以下报错 这个报错是是路由中点击路径重复 ,也有可能是安装的vue-router还是之前出错的那个版本,在项目目录下运行 npm i vue-router@3.0 -S 即可. ...
- proxy代理报错: Uncaught (in promise) Error: Request failed with status code 500
POST http://localhost:8013/check/login 500 (Internal Server Error) createError.js:16 Uncaught (in pr ...
- axios请求报Uncaught (in promise) Error: Request failed with status code 404
使用axios处理请求时,出现的问题解决 当url是远程接口链接时,会报404的错误: Uncaught (in promise) Error: Request failed with status ...
- 11.12 Ext JS 的Uncaught (in promise) Error: Cannot load package问题和解决分析
问题: 动态模块第一次无法加载,浏览器端报 Uncaught (in promise) Error: Cannot load package,但是刷新之后正常. 发生场景: 使用动态加载方式加载模块, ...
- axios请求415错误Uncaught (in promise) Error: Request failed with status code 415
Uncaught (in promise) Error: Request failed with status code 415 错误如下图 前端代码(vue): var data = {userna ...
- Vue——Vue-Router的push和replace方法[Uncaught (in promise) Error]解决方案
问题描述 在升级了Vue-Router版本到到3.1.0及以上之后,页面在跳转路由控制台会报Uncaught (in promise) Error的问题 Vue更新日志 https://github. ...
最新文章
- 15DOM之获取元素方法
- 【转】Hadoop分布式集群搭建hadoop2.6+Ubuntu16.04
- 【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
- 正视长尾挑战!颜水成、冯佳时团队发布首篇《深度长尾学习》综述
- mongodb连接失败_深入浅出mongodb(一)
- ruby hash方法_Ruby中带有示例的Hash.select方法
- 树莓派编译mysql卡死_关于树莓派编译工作空间卡死情况的解决办法
- java 判断是否包含中文_Java 判断字符串是否包含中文正则表达式
- GlusterFS简单环境部署
- access视频教程百度网盘_Access数据库快速开发视频课程
- 复制pdf文本出现大量换行的解决办法
- MySQL 数据恢复 —— 使用 data 目录
- textView设置粗体以及textView文字中划线
- 张孝祥正在整理Java就业面试题大全
- Linux查看服务器配置
- Veritas针对通用数据保护再出手
- RPM软件包和YUM软件仓库的实例
- 周志明架构课--03.SOA时代:成功理论与失败实践
- 决定计算机运行速度的是哪个配件,计算机的CPU等级决定了计算机的速度. 主要方面是什么?...
- 为什么N型MOS管占据主导地位