提交 65b2cc36 编写于 作者: Q qiang

fix: 修复 H5 端 picker-view 组件某些情况设置 value 不生效的问题

上级 5dd68e04
......@@ -40,7 +40,7 @@ export default {
},
watch: {
value (val, oldVal) {
if (val === oldVal || val.length !== oldVal.length || val.findIndex((item, index) => item !== oldVal[index]) >= 0) {
if (__PLATFORM__ !== 'app-plus' || val === oldVal || val.length !== oldVal.length || val.findIndex((item, index) => item !== oldVal[index]) >= 0) {
this.valueSync.length = val.length
val.forEach((val, index) => {
if (val !== this.valueSync[index]) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册