修改楼层装修中商品装修出现的默认不显示bug

This commit is contained in:
lemon橪
2021-08-16 11:34:15 +08:00
parent 885ccb5006
commit 3d1e175194

View File

@@ -33,12 +33,22 @@ export default {
return {
selected: {
index: 0,
val: "精选",
val: "",
},
};
},
props: ["res"],
mounted() {},
watch: {
res: {
handler(val) {
// 监听父级的值 如果有值将值赋给selected
if (val) {
this.selected.val = this.res.list[0].listWay[0].type;
}
},
immediate: true,
},
},
methods: {
handleClick(item) {
uni.navigateTo({