uView
uView copied to clipboard
1.8.7 使用$u.route无法正常跳转,设置type失效问题
这个功能解决了什么问题?
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)
我也遇到了这个问题,初步分析是由于默认配置在options传入的后面,以至于覆盖了options的type参数,将变量options和this.config对调位置,问题得到解决