From 7b6669c2d97a986fb5066801ba092b8191056374 Mon Sep 17 00:00:00 2001 From: cenlj Date: Tue, 12 Apr 2022 10:00:54 +0800 Subject: [PATCH] feat: hljs import --- initializer-ui/src/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/initializer-ui/src/main.ts b/initializer-ui/src/main.ts index 2778f4e..f55e73a 100644 --- a/initializer-ui/src/main.ts +++ b/initializer-ui/src/main.ts @@ -4,10 +4,11 @@ import Antd from 'ant-design-vue' import './index.css' import 'ant-design-vue/dist/antd.css'; import 'highlight.js/styles/stackoverflow-light.css' -import 'highlight.js/lib/common'; +import hljs from 'highlight.js/lib/common'; import highlightVuePlugin from '@highlightjs/vue-plugin' const app = createApp(App) app.use(highlightVuePlugin) app.use(Antd) -app.mount('#app') \ No newline at end of file +app.mount('#app') +console.log(hljs.APOS_STRING_MODE) -- GitLab