umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

bug: useRouteMeta 意外返回了 Proxy 对象?且在首页这种没有 texts 的场景下取值 texts 会报 `Uncaught Promise {<fulfilled>: {…}}` #2124

Closed xiaochena closed 3 months ago

xiaochena commented 6 months ago

Version

2.3.4

OS Version

window 11

Node.js Version

18.0.0

Browser Version

Chrome 124.0.6367.208

Link to minimal reproduction

https://github.com/arvinxx/dumi-theme-antd-style

Steps to reproduce

直接运行、切换菜单时的白屏就是因为 useRouteMeta 意外返回了一个 Proxy 对象、且在取值时报错

What is expected?

返回 Proxy 对象 是否是正常的行为?取值时不报错

What is actually happening?

useRouteMeta 意外返回了一个 Proxy 对象 且在取值时报错

Any additional comments? (optional)

No response