|
|
@@ -19,8 +19,11 @@ import { getDicts } from "@/api/system/dict/data";
|
|
19
|
19
|
import { getConfigKey } from "@/api/system/config";
|
|
20
|
20
|
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
|
|
21
|
21
|
import Pagination from "@/components/Pagination";
|
|
22
|
|
-//自定义表格工具扩展
|
|
|
22
|
+// 自定义表格工具扩展
|
|
23
|
23
|
import RightToolbar from "@/components/RightToolbar"
|
|
|
24
|
+// 代码高亮插件
|
|
|
25
|
+import hljs from 'highlight.js'
|
|
|
26
|
+import 'highlight.js/styles/github-gist.css'
|
|
24
|
27
|
|
|
25
|
28
|
// 全局方法挂载
|
|
26
|
29
|
Vue.prototype.getDicts = getDicts
|
|
|
@@ -50,6 +53,7 @@ Vue.component('Pagination', Pagination)
|
|
50
|
53
|
Vue.component('RightToolbar', RightToolbar)
|
|
51
|
54
|
|
|
52
|
55
|
Vue.use(permission)
|
|
|
56
|
+Vue.use(hljs.vuePlugin);
|
|
53
|
57
|
|
|
54
|
58
|
/**
|
|
55
|
59
|
* If you don't want to use mock-server
|