diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 0fd52ced..4acdcb96 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -19,9 +19,11 @@ import { getDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; import Pagination from "@/components/Pagination"; -// 自定义表格工具扩展 +// 自定义表格工具组件 import RightToolbar from "@/components/RightToolbar" -// 头部标签插件 +// 字典标签组件 +import DictTag from '@/components/DictTag' +// 头部标签组件 import VueMeta from 'vue-meta' // 全局方法挂载 @@ -48,6 +50,7 @@ Vue.prototype.msgInfo = function (msg) { } // 全局组件挂载 +Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) Vue.component('RightToolbar', RightToolbar) diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue index 6d3fb41b..cc3b0226 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -184,14 +184,9 @@