text: import Vue from 'vue'
  import App from './App.vue'
  //引入 路由 vuex
  import router from '@/router'
  import store from '@/store'
  
  import './element'
  
  
  //引入element-ui 组件实现过度动画
  import 'element-ui/lib/theme-chalk/base.css';
  import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
  Vue.component(CollapseTransition.name, CollapseTransition)
  
  Vue.filter('returnFloat', function (value) {
    var value = Math.round(parseFloat(value) * 100) / 100;
  
    var xsd = value.toString().split(".");
  
    if(value==NaN){
      console.log(value)
      return 0
    }
    if (xsd.length == 1) {
        value = value.toString() + ".0";
        return value;
    }
    if (xsd.length > 1) {
        return value;
    }
  })
  
  //统一接口api文件夹里面的全部请求函数
  import * as API from '@/api'
  import '@/utils/flexble'
  import { log } from 'node_modules/qrcode/lib/core/galois-field'
  // 节流
  const on = Vue.prototype.$on
  Vue.prototype.$on = function (event, func) {
    let previous = 0
    let newFunc = func
    if (event === 'click') {
      newFunc = function () {
        const now = new Date().getTime()
        if (previous + 1000 <= now) {
          func.apply(this, arguments)
          previous = now
        }
      }
    }
    on.call(this, event, newFunc)
  }
  
  
  
  
  
  Vue.config.productionTip = false
  new Vue({
    render: h => h(App),
    router,
    store,
    beforeCreate() {
      Vue.prototype.$bus = this;
      Vue.prototype.$API = API;
    }
  }).$mount('#app')