f***@qq.com
f***@qq.com
  • 发布:2024-04-17 16:56
  • 更新:2024-04-17 16:56
  • 阅读:36

【报Bug】当设置page-meta后,如果链接带有参数h5会提示警告

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

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

浏览器平台: Edge

浏览器版本: 123.0.2420.97

项目创建方式: CLI

CLI版本号: 4.08

示例代码:
<template>  
<page-meta  
    :background-text-style="bgTextStyle"  
    :background-color="bgColor"  
    :background-color-top="bgColorTop"  
    :background-color-bottom="bgColorBottom"  
    :scroll-top="scrollTop"  
    page-style="color: green"  
    root-font-size="16px"  
  >  
  </page-meta>  
    <view class="page-bg-gray">  
</template>

操作步骤:

npm run dev:h5
访问链接 http://localhost:3000/mobile/user/user_set/user_set?id=1

预期结果:

正常应该没有提示警告

实际结果:

main.ts:45 [Vue warn]: Extraneous non-props attributes (id) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

bug描述:

http://localhost:3000/mobile/user/user_set/user_set?id=1
当设置page-meta后,如果链接带有参数h5下面会提示

main.ts:45 [Vue warn]: Extraneous non-props attributes (id) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.

2024-04-17 16:56 负责人:无 分享
已邀请:

要回复问题请先登录注册