修复响应式值没有变更的问题

This commit is contained in:
aixianling
2024-07-12 09:51:30 +08:00
parent 3cb3bf5474
commit dcfc8e658d

View File

@@ -31,7 +31,7 @@ export default {
const hourNum = new Date().getHours(),
groupCodeList = this.options?.[0].value
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1"}
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [groupCodeList], type: "1", changeWay: "1"})
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [groupCodeList], type: "1", changeWay: "1", categoryId: ""})
}, 500)
})
},
@@ -65,7 +65,7 @@ export default {
</el-select>
</el-form-item>
<el-form-item label="切换方式">
<el-select v-model="form.changeWay" clearable placeholder="全部">
<el-select v-model="form.changeWay" clearable placeholder="全部" @change="v=>$multipleStoreBoard.search.changeWay=v">
<el-option v-for="item in changeWayOps" :key="item.value" :label="item.label" :value="item.value"/>
</el-select>
</el-form-item>