二手车交易,监听筛选框的值

This commit is contained in:
2025-03-13 09:24:28 +08:00
parent 8b44ce326a
commit 7d42853f39
5 changed files with 25 additions and 11 deletions

View File

@ -119,8 +119,13 @@ export default {
mixins:[myMixins],
watch:{
activeTab(){
this.setSearchVal();
this.getList()
}
},
topSearch(){
this.setSearchVal();
this.getList()
},
},
data(){
return{
@ -161,10 +166,9 @@ export default {
document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState
if (state == 'hidden') { // 用户离开了
// console.log("用户离开了")
}
if (state == 'visible') {
// console.log("用户visible")
console.log('visible')
}
});
},