通过watch监听
computed: {
isPreMark () {
return xxx
}
},
watch: {
isPreMark (newVal,oldVal) {
this.getSearchList()
}
},
methods: {
getSearchList () {}
}
通过watch监听
computed: {
isPreMark () {
return xxx
}
},
watch: {
isPreMark (newVal,oldVal) {
this.getSearchList()
}
},
methods: {
getSearchList () {}
}