main.js 486 B

1234567891011121314151617181920
  1. import App from './App'
  2. import Vue from 'vue'
  3. import store from './store'
  4. import { formatPriceWithSymbol, formatPrice, formatRate, formatScore } from '@/utils/format'
  5. Vue.config.productionTip = false
  6. Vue.prototype.$store = store
  7. Vue.prototype.formatPriceWithSymbol = formatPriceWithSymbol
  8. Vue.prototype.formatPrice = formatPrice
  9. Vue.prototype.formatRate = formatRate
  10. Vue.prototype.formatScore = formatScore
  11. App.mpType = 'app'
  12. const app = new Vue({
  13. store,
  14. ...App
  15. })
  16. app.$mount()