From aee1e5314080f22611236a76cd94248ec9e7a7ea Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期二, 22 六月 2021 20:44:40 +0800
Subject: [PATCH] 全局挂载字典标签组件

---
 ruoyi-ui/src/views/system/dict/data.vue  |    5 -----
 ruoyi-ui/src/views/system/dict/index.vue |    5 -----
 ruoyi-ui/src/main.js                     |    7 +++++--
 3 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js
index 0e9639d..789ffb7 100644
--- a/ruoyi-ui/src/main.js
+++ b/ruoyi-ui/src/main.js
@@ -18,9 +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"
-// 澶撮儴鏍囩鎻掍欢
+// 瀛楀吀鏍囩缁勪欢
+import DictTag from '@/components/DictTag'
+// 澶撮儴鏍囩缁勪欢
 import VueMeta from 'vue-meta'
 
 // 鍏ㄥ眬鏂规硶鎸傝浇
@@ -47,6 +49,7 @@
 }
 
 // 鍏ㄥ眬缁勪欢鎸傝浇
+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 543a9e0..aa3849a 100644
--- a/ruoyi-ui/src/views/system/dict/data.vue
+++ b/ruoyi-ui/src/views/system/dict/data.vue
@@ -185,14 +185,9 @@
 <script>
 import { listData, getData, delData, addData, updateData, exportData } from "@/api/system/dict/data";
 import { listType, getType } from "@/api/system/dict/type";
-// 瀛楀吀鏍囩缁勪欢锛堜娇鐢ㄩ绻佸彲鍦ㄥ叏灞�鎸傝浇锛�
-import DictTag from '@/components/DictTag'
 
 export default {
   name: "Data",
-  components: {
-    DictTag
-  },
   data() {
     return {
       // 閬僵灞�
diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue
index 97d321a..4bf733f 100644
--- a/ruoyi-ui/src/views/system/dict/index.vue
+++ b/ruoyi-ui/src/views/system/dict/index.vue
@@ -194,14 +194,9 @@
 
 <script>
 import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type";
-// 瀛楀吀鏍囩缁勪欢锛堜娇鐢ㄩ绻佸彲鍦ㄥ叏灞�鎸傝浇锛�
-import DictTag from '@/components/DictTag'
 
 export default {
   name: "Dict",
-  components: {
-    DictTag
-  },
   data() {
     return {
       // 閬僵灞�

--
Gitblit v1.9.3