Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.7 使用$u.route无法正常跳转,设置type失效问题 #1269

Open
Lil-El opened this issue Mar 15, 2023 · 1 comment
Open

1.8.7 使用$u.route无法正常跳转,设置type失效问题 #1269

Lil-El opened this issue Mar 15, 2023 · 1 comment

Comments

@Lil-El
Copy link

Lil-El commented Mar 15, 2023

这个功能解决了什么问题?

commit(ef41ee3):“fix(route.js):调用方法错误”

在这次commit修改中,将deepClone修改为deepMerge了。

导致调用this.$u.route({ utl: "/pages/xx/xx", type: "tab" })时,mergeConfig的type永远是navigateTo;

造成route无法正常跳转。

你期望的 API 是怎样的?

mergeConfig = uni.$u.deepClone(options, this.config)
@Lil-El Lil-El changed the title 1.8.7 使用$u.route跳转,设置type失效问题 1.8.7 使用$u.route无法正常跳转,设置type失效问题 Mar 15, 2023
@Qingcoder
Copy link

我也遇到了这个问题,初步分析是由于默认配置在options传入的后面,以至于覆盖了options的type参数,将变量options和this.config对调位置,问题得到解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants