xydegithub

Results 3 comments of xydegithub

> > 问题是如何才能使 useParams 正常使用呢?老大有办法解决么?我这边发现通过render传入props,内部组件Props.match也是空的 > > 用react-router-cache-route这个库,也是同一个作者写的,可以正常使用useParams 我用react-router-cache-route,也是出现useParams为空的情况,在路由跳转离开的时候触发当前组件的渲染,useParams获取为空报错

> 转义之后的问题是啥 代码里写的是export const a ='测试',然后build之后变成了export declare const a = "\u6D4B\u8BD5";汉字被转了,不想被转义 @PeachScript 大佬帮忙分析一下啊