Commit 4db6d38f by 袁成

fix: indexMixin watch value

parent 3b3a8c24
...@@ -10,19 +10,19 @@ export default { ...@@ -10,19 +10,19 @@ export default {
}, },
}, },
}, },
watch: { // watch: {
value: { // value: {
handler: function (newVal) { // handler: function (newVal) {
if (newVal) { // if (newVal) {
this.init(newVal) // this.init(newVal)
} else { // } else {
this.selection = [] // this.selection = []
this.sendEvent(null) // this.sendEvent(null)
} // }
}, // },
deep: true, // deep: true,
}, // },
}, // },
methods: { methods: {
init(value) { init(value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment