From 1249c7ca26491a51c1cf87aea1d277b6fedf30ab Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 15 十二月 2020 10:25:00 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue --- ruoyi-ui/src/main.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 71bab79..678431f 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -18,8 +18,11 @@ import { getConfigKey } from "@/api/system/config"; import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi"; import Pagination from "@/components/Pagination"; -//鑷畾涔夎〃鏍煎伐鍏锋墿灞� +// 鑷畾涔夎〃鏍煎伐鍏锋墿灞� import RightToolbar from "@/components/RightToolbar" +// 浠g爜楂樹寒鎻掍欢 +import hljs from 'highlight.js' +import 'highlight.js/styles/github-gist.css' // 鍏ㄥ眬鏂规硶鎸傝浇 Vue.prototype.getDicts = getDicts @@ -49,6 +52,7 @@ Vue.component('RightToolbar', RightToolbar) Vue.use(permission) +Vue.use(hljs.vuePlugin); /** * If you don't want to use mock-server -- Gitblit v1.9.3