uView icon indicating copy to clipboard operation
uView copied to clipboard

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

Open Lil-El opened this issue 2 years ago • 1 comments

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

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 avatar Mar 15 '23 08:03 Lil-El

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

Qingcoder avatar Mar 24 '23 13:03 Qingcoder