vue3模式 a,b两个页面,b页面有多个根节点,a带参数跳转b页面,b页面onLoad中接受参数时报错
- 发布:2023-05-01 00:28
- 更新:2023-10-17 14:58
- 阅读:785
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 3.7.11
浏览器平台: Chrome
浏览器版本: 内置浏览器
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常接受参数
正常接受参数
实际结果:
能接受参数同时报错“Extraneous non-props attributes (title, time) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.”
能接受参数同时报错“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.
2 个回复
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
这是vue的告警,根据 文档 排查下代码。