关于前端:使用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传参只有一个根结点

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理