-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
22 lines (21 loc) · 699 Bytes
/
main.ts
File metadata and controls
22 lines (21 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// 引入暗色主题
import 'element-plus/theme-chalk/dark/css-vars.css';
import { createPinia } from 'pinia';
import { VueDraggableNext } from 'vue-draggable-next';
import router from './router/index.ts';
import 'highlight.js/styles/atom-one-dark.css';
import 'highlight.js/lib/common';
import hljsVuePlugin from '@highlightjs/vue-plugin';
//注册组件
const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
app.use(hljsVuePlugin);
app.use(ElementPlus);
app.use(router);
app.component('draggable', VueDraggableNext);
app.mount('#app');