utils/config.js Vue.filter("formatNum",function(sum){ if(sum>10000){ sum=Math.floor(sum/1000)/10+"万" }else{ sum="sum" } return sum}) Music/index.vue {{item.playCount | formatNum()}}