debounce.js在main.js中引入
import '@/utils/debounce'
import Vue from 'vue'
const on = Vue.prototype.$on
// click Event 防抖处理
Vue.prototype.$on = function (event, func) {
  let timer
  let newFunc = func
  if (event === 'click') {
    newFunc = function () {
      clearTimeout(timer)
      timer = setTimeout(function () {
        func.apply(this, arguments)
      }, 150)
    }
  }
  on.call(this, event, newFunc)
}










