未验证 提交 f8eb3775 编写于 作者: M MechaGirls 提交者: GitHub

fix(tabs):当父组件默认值传入时无法更新tabs当前标签状态 (#832)

因为watch默认惰性的一开始不会执行
上级 9807dce4
......@@ -132,7 +132,8 @@ export default create({
} else {
currentIndex.value = index;
}
}
},
{ immediate: true }
);
onMounted(init);
onActivated(init);
......
......@@ -128,7 +128,8 @@ export default create({
} else {
currentIndex.value = index;
}
}
},
{ immediate: true }
);
onMounted(init);
onActivated(init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册