From 6b988bd582bfcd17fee48c476a5a6e5cc172b0d5 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期三, 12 三月 2025 10:08:33 +0800
Subject: [PATCH] dev-2

---
 src/plugins/index.ts |   39 +++++++++++++++++++++++++++++----------
 1 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/src/plugins/index.ts b/src/plugins/index.ts
index dc49340..6c5e0c3 100644
--- a/src/plugins/index.ts
+++ b/src/plugins/index.ts
@@ -3,22 +3,41 @@
 import download from './download';
 import cache from './cache';
 import auth from './auth';
+// 棰勮鍔ㄧ敾
+import animate from '@/animate';
+
+import { download as dl } from '@/utils/request';
+import { useDict } from '@/utils/dict';
+import { getConfigKey, updateConfigByKey } from '@/api/system/config';
+import { parseTime, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi';
 
 import { App } from 'vue';
 
 export default function installPlugin(app: App) {
-	// 椤电鎿嶄綔
-	app.config.globalProperties.$tab = tab;
+  // 椤电鎿嶄綔
+  app.config.globalProperties.$tab = tab;
 
-	// 妯℃�佹瀵硅薄
-	app.config.globalProperties.$modal = modal;
+  // 妯℃�佹瀵硅薄
+  app.config.globalProperties.$modal = modal;
 
-	// 缂撳瓨瀵硅薄
-	app.config.globalProperties.$cache = cache;
+  // 缂撳瓨瀵硅薄
+  app.config.globalProperties.$cache = cache;
 
-	// 涓嬭浇鏂囦欢
-	app.config.globalProperties.$download = download;
+  // 涓嬭浇鏂囦欢
+  app.config.globalProperties.$download = download;
 
-	// 璁よ瘉瀵硅薄
-	app.config.globalProperties.$auth = auth;
+  // 璁よ瘉瀵硅薄
+  app.config.globalProperties.$auth = auth;
+
+  // 鍏ㄥ眬鏂规硶鎸傝浇
+  app.config.globalProperties.useDict = useDict;
+  app.config.globalProperties.getConfigKey = getConfigKey;
+  app.config.globalProperties.updateConfigByKey = updateConfigByKey;
+  app.config.globalProperties.download = dl;
+  app.config.globalProperties.parseTime = parseTime;
+  app.config.globalProperties.handleTree = handleTree;
+  app.config.globalProperties.addDateRange = addDateRange;
+  app.config.globalProperties.selectDictLabel = selectDictLabel;
+  app.config.globalProperties.selectDictLabels = selectDictLabels;
+  app.config.globalProperties.animate = animate;
 }

--
Gitblit v1.9.3