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相关推荐

  1. 前端: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 ...

  2. 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 ...

  3. 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 ...

  4. 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 即可. ...

  5. 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 ...

  6. axios请求报Uncaught (in promise) Error: Request failed with status code 404

    使用axios处理请求时,出现的问题解决 当url是远程接口链接时,会报404的错误: Uncaught (in promise) Error: Request failed with status ...

  7. 11.12 Ext JS 的Uncaught (in promise) Error: Cannot load package问题和解决分析

    问题: 动态模块第一次无法加载,浏览器端报 Uncaught (in promise) Error: Cannot load package,但是刷新之后正常. 发生场景: 使用动态加载方式加载模块, ...

  8. 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 ...

  9. Vue——Vue-Router的push和replace方法[Uncaught (in promise) Error]解决方案

    问题描述 在升级了Vue-Router版本到到3.1.0及以上之后,页面在跳转路由控制台会报Uncaught (in promise) Error的问题 Vue更新日志 https://github. ...

最新文章

  1. 15DOM之获取元素方法
  2. 【转】Hadoop分布式集群搭建hadoop2.6+Ubuntu16.04
  3. 【错误记录】编译安卓项目报错 ( AndroidMavenPlugin 错误 )
  4. 正视长尾挑战!颜水成、冯佳时团队发布首篇《深度长尾学习》综述
  5. mongodb连接失败_深入浅出mongodb(一)
  6. ruby hash方法_Ruby中带有示例的Hash.select方法
  7. 树莓派编译mysql卡死_关于树莓派编译工作空间卡死情况的解决办法
  8. java 判断是否包含中文_Java 判断字符串是否包含中文正则表达式
  9. GlusterFS简单环境部署
  10. access视频教程百度网盘_Access数据库快速开发视频课程
  11. 复制pdf文本出现大量换行的解决办法
  12. MySQL 数据恢复 —— 使用 data 目录
  13. textView设置粗体以及textView文字中划线
  14. 张孝祥正在整理Java就业面试题大全
  15. Linux查看服务器配置
  16. Veritas针对通用数据保护再出手
  17. RPM软件包和YUM软件仓库的实例
  18. 周志明架构课--03.SOA时代:成功理论与失败实践
  19. 决定计算机运行速度的是哪个配件,计算机的CPU等级决定了计算机的速度. 主要方面是什么?...
  20. 为什么N型MOS管占据主导地位

热门文章

  1. fluxion5.9 踩坑
  2. AI画作拿下比赛一等奖惹怒人类艺术家,主办方:照常颁奖
  3. echarts首次加载不显示,再次刷新照常显示
  4. pwc(普华永道)招聘.net
  5. DB2控制中心菜单中文乱码问题
  6. 河北工程大学计算机考试题型,2019上半年河北工程大学计算机等级考试报名通知...
  7. Ruoyi的功能简单介绍
  8. MYSQL优化汇总——学习入口
  9. Linux下的酷我音乐盒(开源非官方)
  10. 迷宫问题----经典回溯法解决