export default {
name: 'userDetail',
data() {
return {
that: this,
values: 'test'
}
},
filters:{
testFilter (val,that){
return that.values
},
}
}
<td>{{info.name| testFilter (that)}}</td>
用that指代一下,小功告成