吉安感知网项目-前端
罗广辉
2026-01-21 d1b0a6c1f0673cf210deab2ff9b4ce6aeb3133ce
feat: dict
1 files modified
6 ■■■■ changed files
packages/utils/common/index.js 6 ●●●● patch | view | raw | blame | history
packages/utils/common/index.js
@@ -4,8 +4,8 @@
 * @LastEditors  : yuan
 * @LastEditTime : 2026-01-20 17:20:21
 * @FilePath     : \packages\utils\common\index.js
 * @Description  :
 * Copyright 2026 OBKoro1, All Rights Reserved.
 * @Description  :
 * Copyright 2026 OBKoro1, All Rights Reserved.
 * 2026-01-20 17:01:20
 */
export function fieldRules(required,max) {
@@ -23,7 +23,7 @@
}
export function getDictLabel(value, dictList) {
export function getDictLabel(value, dictList = []) {
    return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',')
}