提交 d6043285 编写于 作者: fxy060608's avatar fxy060608

fix(mp-baidu): invalidate update (#3612)

上级 8f726ce2
......@@ -61,8 +61,9 @@ export function updateComponentProps(
if (hasPropsChanged(prevProps, nextProps)) {
updateProps(instance, nextProps, prevProps, false)
const index = invalidateJob(instance.update)
if (__PLATFORM__ === 'mp-toutiao') {
if (__PLATFORM__ === 'mp-toutiao' || __PLATFORM__ === 'mp-baidu') {
// 字节跳动小程序 https://github.com/dcloudio/uni-app/issues/3340
// 百度小程序 https://github.com/dcloudio/uni-app/issues/3612
index === -1 && instance.update()
} else {
instance.update()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册