main.ts 914 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import dayjs from 'dayjs'
  4. import 'dayjs/locale/zh-cn'
  5. import router from '../router/index-teacher'
  6. import vueFilter from '@/helpers/vueFilter'
  7. import 'normalize.css'
  8. import '../styles/index.less'
  9. import { state } from '@/state'
  10. const app = createApp(App)
  11. // 将selects全局混入当前vue实例中
  12. // import activeButtonIcon from '@/common/images/icon_check.png';
  13. // import inactiveButtonIcon from '@/common/images/icon_default.png';
  14. // app.mixin({
  15. // data() {
  16. // return {
  17. // activeButtonIcon: activeButtonIcon,
  18. // inactiveButtonIcon: inactiveButtonIcon,
  19. // };
  20. // }
  21. // });
  22. // import Vconsole from 'vconsole'
  23. // const vconsole = new Vconsole()
  24. state.platformType = 'TEACHER'
  25. dayjs.locale('zh-ch')
  26. app.config.globalProperties.$dayjs = dayjs
  27. app.config.globalProperties.$filters = vueFilter
  28. app.use(router)
  29. app.mount('#app')