From 1d5133b6957d95c0c2b1e9641f21a03d9a1c85bb Mon Sep 17 00:00:00 2001
From: ahaos <8406649+lhailgl@user.noreply.gitee.com>
Date: 星期四, 14 十二月 2023 16:17:12 +0800
Subject: [PATCH] !69 修复升级依赖带来的类型问题 * fix 修复变量问题 * Merge remote-tracking branch 'origin/dev' into dev * update 依赖升级 * update 依赖升级 * Merge remote-tracking branch 'origin/dev' into dev * 升级依赖 * Merge remote-tracking branch 'origin/ts' into ts * 升级依赖 * Merge branch 'dev' of gitee.com:JavaLionLi/plus-ui into ts * 升级依赖 * !61 fix: 删除重复环境变量ElUploadInstance * fix: 删除重复环境变量ElUploadInstance

---
 src/utils/dict.ts |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 23948e5..0575072 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -4,24 +4,24 @@
  * 鑾峰彇瀛楀吀鏁版嵁
  */
 export const useDict = (...args: string[]): { [key: string]: DictDataOption[] } => {
-	const res = ref<{
-		[key: string]: DictDataOption[];
-	}>({});
-	return (() => {
-		args.forEach(async (dictType) => {
-			res.value[dictType] = [];
-			const dicts = useDictStore().getDict(dictType);
-			if (dicts) {
-				res.value[dictType] = dicts;
-			} else {
-				await getDicts(dictType).then((resp) => {
-					res.value[dictType] = resp.data.map(
-						(p): DictDataOption => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass })
-					);
-					useDictStore().setDict(dictType, res.value[dictType]);
-				});
-			}
-		});
-		return res.value;
-	})();
+  const res = ref<{
+    [key: string]: DictDataOption[];
+  }>({});
+  return (() => {
+    args.forEach(async (dictType) => {
+      res.value[dictType] = [];
+      const dicts = useDictStore().getDict(dictType);
+      if (dicts) {
+        res.value[dictType] = dicts;
+      } else {
+        await getDicts(dictType).then((resp) => {
+          res.value[dictType] = resp.data.map(
+            (p): DictDataOption => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass })
+          );
+          useDictStore().setDict(dictType, res.value[dictType]);
+        });
+      }
+    });
+    return res.value;
+  })();
 };

--
Gitblit v1.9.3