Umi: #BUG# location.query 解析问题

Created on 30 Nov 2018  ·  7Comments  ·  Source: umijs/umi

?current=1&search[title2][0]=344&search[title2][1]=33&search[title]=344"

如上,是地址栏的参数串

目前框架解析出来的如下

改造前的代码

image

改造前的结果

image

正常解析应该如下

改造后的代码

image

改造后的结果

image

type(bug) wontfix

Most helpful comment

你可以在进阶教程中的运行时配置中配置onRouteChange
image

All 7 comments

@sorrycc @xiaohuoni

👍

@sorrycc 这个是umi中处理的吗?我感觉解析后的比较友好

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

你可以在进阶教程中的运行时配置中配置onRouteChange
image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings