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

master
lemon橪 2021-08-16 11:34:15 +08:00
parent 885ccb5006
commit 3d1e175194
1 changed files with 12 additions and 2 deletions

View File

@ -33,12 +33,22 @@ export default {
return { return {
selected: { selected: {
index: 0, index: 0,
val: "精选", val: "",
}, },
}; };
}, },
props: ["res"], props: ["res"],
mounted() {}, watch: {
res: {
handler(val) {
// selected
if (val) {
this.selected.val = this.res.list[0].listWay[0].type;
}
},
immediate: true,
},
},
methods: { methods: {
handleClick(item) { handleClick(item) {
uni.navigateTo({ uni.navigateTo({