md/src/main.ts

29 lines
753 B
TypeScript
Raw Normal View History

2024-08-18 19:49:16 +08:00
import { createApp } from 'vue'
2024-09-17 12:21:48 +08:00
import { createPinia } from 'pinia'
2024-08-18 19:49:16 +08:00
import ElementPlus from './element'
import App from './App.vue'
2024-08-18 19:49:16 +08:00
import 'virtual:uno.css'
import 'codemirror/lib/codemirror.css'
import 'codemirror/theme/xq-light.css'
2024-09-16 00:01:54 +08:00
import 'codemirror/theme/darcula.css'
/* 每个页面公共css */
2024-08-18 19:49:16 +08:00
import '@/assets/index.css'
import '@/assets/less/theme.less'
import 'codemirror/mode/css/css'
import 'codemirror/mode/markdown/markdown'
import 'codemirror/addon/edit/closebrackets'
import 'codemirror/addon/edit/matchbrackets'
import 'codemirror/addon/selection/active-line'
import 'codemirror/addon/hint/show-hint'
import 'codemirror/addon/hint/css-hint'
2024-08-18 19:49:16 +08:00
const app = createApp(App)
2020-01-13 22:16:04 +08:00
2024-09-17 12:21:48 +08:00
app.use(createPinia())
2024-08-18 19:49:16 +08:00
app.use(ElementPlus)
2024-08-18 19:49:16 +08:00
app.mount(`#app`)