main.js 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @Author: wanglj 471442253@qq.com
  3. * @Date: 2023-01-04 16:23:23
  4. * @LastEditors: liuzhenlin
  5. * @LastEditTime: 2023-06-08 10:33:27
  6. * @Description: file content
  7. * @FilePath: \订单全流程管理系统\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, selectDictLabel } from '@/utils'
  16. import dictApi from '@/api/system/dict'
  17. import PostComment from '@/components/postComments/index.js'
  18. Vue.prototype.$PostComment = PostComment
  19. Vue.prototype.parseTime = parseTime
  20. Vue.prototype.translateDataToTree = translateDataToTree
  21. Vue.prototype.getDicts = dictApi.getDictDataByType
  22. Vue.prototype.resetForm = resetForm
  23. Vue.prototype.selectDictLabel = selectDictLabel
  24. Vue.prototype.formatPrice = formatPrice
  25. Vue.config.productionTip = false
  26. new Vue({
  27. el: '#app',
  28. i18n,
  29. store,
  30. router,
  31. render: (h) => h(App),
  32. })