main.js 806 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * @Author: wanglj 471442253@qq.com
  3. * @Date: 2023-01-04 16:23:23
  4. * @LastEditors: wanglj
  5. * @LastEditTime: 2023-01-05 10:36:59
  6. * @Description: file content
  7. * @FilePath: \opms_frontend\src\main.js
  8. */
  9. import Vue from 'vue'
  10. import App from './App'
  11. import i18n from './i18n'
  12. import store from './store'
  13. import router from './router'
  14. import '@/vab'
  15. import { parseTime, translateDataToTree, resetForm, formatPrice } from '@/utils'
  16. import dictApi from '@/api/system/dict'
  17. Vue.prototype.parseTime = parseTime
  18. Vue.prototype.translateDataToTree = translateDataToTree
  19. Vue.prototype.getDicts = dictApi.getDictDataByType
  20. Vue.prototype.resetForm = resetForm
  21. Vue.prototype.formatPrice = formatPrice
  22. Vue.config.productionTip = false
  23. new Vue({
  24. el: '#app',
  25. i18n,
  26. store,
  27. router,
  28. render: (h) => h(App),
  29. })