1874.

Results 39 comments of 1874.

你自己package.json 里面写了, dev:weapp 里面执行了 build:weapp

我试了 原生 和 Taro 项目 都支持的呢,虽然我的 taro 版本是最新版本,不过应该影响不大,要不你给个复现的 demo

![image](https://user-images.githubusercontent.com/22173084/188072418-7cb04e16-3919-49e7-8fcd-d070e38def94.png) ![image](https://user-images.githubusercontent.com/22173084/188072458-c9843c39-c179-4cd3-83cc-1db2632e065c.png) ![image](https://user-images.githubusercontent.com/22173084/188072473-7cdc5960-22e9-4866-b039-5bc5a184a676.png)

测试了下应该跟组件没有关系,是整个页面的```useReady``` hook 都没触发

> useReady 没触发 useLoad 触发了吗 你为什么确定是 bug useLoad 触发了。 为什么确定是bug ? 页面的 useReady 不触发 ,这还不叫 bug ?

![image](https://user-images.githubusercontent.com/22173084/188067496-e7b2d779-d59e-4af3-8c26-adecbeef4863.png) ![image](https://user-images.githubusercontent.com/22173084/188067538-ca10188e-c60d-4475-9cd2-f749c2beca19.png) ![image](https://user-images.githubusercontent.com/22173084/188067719-71af48d8-104e-4876-811c-9003b1eda4cd.png)

> 我也遇到了这个问题。 ~简单处理的话可以先这样: 用 getCurrentInstance 可以正常拿到。~ 这样解决不了。 我测试下来是在调用系统 API 的回调中去跳转会出现这个问题。 目前临时是给在回调中加了一个延时500ms再跳转,就没有问题了。 > > 我的复现方式是从 支付成功之后立即用 taro.redirect 跳转。在下一个页面 useRouter 取到的是前一个页面的 params 👍 ,我之前都没细看,才发现打印的router数据是上个页面的

> @zyqlovekl 这是哪里的 API ? 应该是支付宝(钉钉)的 https://opendocs.alipay.com/mini/api/webview-context

给 `` 组件 加上 `enableNative` 属性即可 https://opendocs.alipay.com/mini/component/input > confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system 因为taro 会自动给 `` 组件 加上 `enableNative` 属性并赋默认值`false`