使用params传参报错问题
文章目录
Extraneous non-props attributes (guid) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.额外的非道具属性(guid)已传递给组件,但由于组件呈现片段或文本根节点,因此无法自动继承。
原因:
1.由于跳转使用router.push params传参,同时该页面存在多个根结点,因此,需要保证使用params传参只有一个根结点

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论