全栈小学生 944e6f291a update admin
2023-09-06 18:50:36 +08:00

32 lines
881 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createApp } from 'vue'
import App from './App.vue'
import roter from './router'
import ElementPlus from 'element-plus'
import pinia from './stores'
import lang from './lang'
import '@/styles/index.scss'
import { useElementIcon } from './utils/common'
// import 'highlight.js/styles/github.css'
import 'highlight.js/styles/stackoverflow-light.css';
import hljs from 'highlight.js/lib/common'
import hljsVuePlugin from '@highlightjs/vue-plugin'
window.hl =hljs
//window.hl =hljs hljs需打印或者其它方式赋值否则代码预览时无法展示代码色彩
//报错请执行
// npm install highlight.js
//npm install @highlightjs/vue-plugin@2.1.0
async function run() {
const app = createApp(App)
app.use(pinia)
app.use(lang)
app.use(roter)
app.use(ElementPlus)
app.use(hljsVuePlugin)
useElementIcon(app)
app.mount('#app')
}
run()