这2个判断可以并成一个
if ( type === 1 && this.collect_Status === 0 || type === 2 && this.give_Status === 0 ) { this.setLinkcollect(type); } else { this.dellinkCollect(type); }
548k questions
547k answers
4 comments
86.3k users