You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
904 B
TypeScript

3 years ago
import { createApp } from 'vue';
// global css
import 'virtual:uno.css';
3 years ago
import '@/assets/styles/index.scss';
import 'element-plus/theme-chalk/dark/css-vars.css';
// App、router、store
import App from './App.vue';
import store from './store';
import router from './router';
// 自定义指令
import directive from './directive';
// 注册插件
import plugins from './plugins/index'; // plugins
// svg图标
import 'virtual:svg-icons-register';
import ElementIcons from '@/plugins/svgicon';
// permission control
import './permission';
3 years ago
// 国际化
import i18n from '@/lang/index';
// vxeTable
import VXETable from 'vxe-table';
import 'vxe-table/lib/style.css';
VXETable.config({
zIndex: 999999
});
3 years ago
const app = createApp(App);
app.use(ElementIcons);
app.use(router);
app.use(store);
3 years ago
app.use(i18n);
app.use(VXETable);
3 years ago
app.use(plugins);
// 自定义指令
directive(app);
app.mount('#app');