diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 0e9639d42..789ffb7bf 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -18,9 +18,11 @@ import { getDicts } from "@/api/system/dict/data"; 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" -// 头部标签插件 +// 字典标签组件 +import DictTag from '@/components/DictTag' +// 头部标签组件 import VueMeta from 'vue-meta' // 全局方法挂载 @@ -47,6 +49,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 543a9e0af..aa3849a62 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -185,14 +185,9 @@