import bus from '@/lib/bus'
bus.\$on('onSearchChange', (val)=>{ this.titleSearch = val; this.getConversationCollectList(); })
@on-change="onSearchChange"
bus.\$emit('onTypeChange', 'chat');
onSearchChange(){ console.info('onSearchChange---------------------',this.titleSearch); if(this.pageType == ''){ this.pageType = 'all'; bus.$emit('onTypeChange', 'all'); setTimeout(()=>bus.$emit('onSearchChange', this.titleSearch), 500) }else{ bus.\$emit('onSearchChange', this.titleSearch); } }