瀚海黎明企业官网后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

1 month ago
  1. import { createApp } from 'vue';
  2. // global css
  3. import 'virtual:uno.css';
  4. import '@/assets/styles/index.scss';
  5. import 'element-plus/theme-chalk/dark/css-vars.css';
  6. // App、router、store
  7. import App from './App.vue';
  8. import store from './store';
  9. import router from './router';
  10. // 自定义指令
  11. import directive from './directive';
  12. // 注册插件
  13. import plugins from './plugins/index'; // plugins
  14. // 高亮组件
  15. // import 'highlight.js/styles/a11y-light.css';
  16. import 'highlight.js/styles/atom-one-dark.css';
  17. import 'highlight.js/lib/common';
  18. import HighLight from '@highlightjs/vue-plugin';
  19. // svg图标
  20. import 'virtual:svg-icons-register';
  21. import ElementIcons from '@/plugins/svgicon';
  22. // permission control
  23. import './permission';
  24. // 国际化
  25. import i18n from '@/lang/index';
  26. // vxeTable
  27. import VXETable from 'vxe-table';
  28. import 'vxe-table/lib/style.css';
  29. VXETable.config({
  30. zIndex: 999999
  31. });
  32. // 修改 el-dialog 默认点击遮照为不关闭
  33. import { ElDialog } from 'element-plus';
  34. ElDialog.props.closeOnClickModal.default = false;
  35. const app = createApp(App);
  36. app.use(HighLight);
  37. app.use(ElementIcons);
  38. app.use(router);
  39. app.use(store);
  40. app.use(i18n);
  41. app.use(VXETable);
  42. app.use(plugins);
  43. // 自定义指令
  44. directive(app);
  45. app.mount('#app');