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

【报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 负责人:无 分享
已邀请:
f***@qq.com

f***@qq.com (作者) - 范春

官方有人看看吗,现在的版本还有这个问题

套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

  • 困难总比办法多

    <template>

    <view> 节点1</view>

    <view> 节点2</view>

    <view> A页面跳转B页面携带参数过来就能复现(vue3+ts)</view>

    </template>

    2024-11-30 16:44

要回复问题请先登录注册