<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>

- 发布:2024-04-17 16:56
- 更新:2024-08-05 08:19
- 阅读:263
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 23H2
浏览器平台: Edge
浏览器版本: 123.0.2420.97
项目创建方式: CLI
CLI版本号: 4.08
示例代码:
操作步骤:
npm run dev:h5
访问链接 http://localhost:3000/mobile/user/user_set/user_set?id=1
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.
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.


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