main.ts 699 B

1234567891011121314151617181920212223242526272829
  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 'normalize.css';
  7. import '../styles/index.less';
  8. const app = createApp(App);
  9. // 将selects全局混入当前vue实例中
  10. // import activeButtonIcon from '@/common/images/icon_check.png';
  11. // import inactiveButtonIcon from '@/common/images/icon_default.png';
  12. // app.mixin({
  13. // data() {
  14. // return {
  15. // activeButtonIcon: activeButtonIcon,
  16. // inactiveButtonIcon: inactiveButtonIcon,
  17. // };
  18. // }
  19. // });
  20. dayjs.locale('zh-ch');
  21. app.config.globalProperties.$dayjs = dayjs;
  22. app.use(router);
  23. app.mount('#app');