From 4839a5152fd96633dd843d74974ec1d888d46fd2 Mon Sep 17 00:00:00 2001 From: zst_2001 <1493232063@qq.com> Date: 星期二, 04 二月 2025 21:11:48 +0800 Subject: [PATCH] fix 修复 消息弹框内容过长不换行 --- 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