utils/config.js

    1. Vue.filter("formatNum",function(sum){
    2. if(sum>10000){
    3. sum=Math.floor(sum/1000)/10+"万"
    4. }else{
    5. sum="sum"
    6. }
    7. return sum
    8. })

    Music/index.vue

    1. {{item.playCount | formatNum()}}