4***@qq.com
4***@qq.com
  • 发布:2023-05-01 00:28
  • 更新:2023-10-17 14:58
  • 阅读:494

【报Bug】vue3模式下页面有多个根节点是,接受页面跳转参数报“warn”

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 3.7.11

浏览器平台: Chrome

浏览器版本: 内置浏览器

项目创建方式: HBuilderX

操作步骤:

vue3模式 a,b两个页面,b页面有多个根节点,a带参数跳转b页面,b页面onLoad中接受参数时报错

预期结果:

正常接受参数

实际结果:

能接受参数同时报错“Extraneous non-props attributes (title, time) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.”

bug描述:

vue3模式下页面有多个根节点是,接受页面跳转参数报“warn” Extraneous non-props attributes (title, time) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

2023-05-01 00:28 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com

解决了吗 ?我也报这个警告 Extraneous non-props attributes (taskStatus) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

YUANRJ

YUANRJ

这是vue的告警,根据 文档 排查下代码。

要回复问题请先登录注册