Files
ruoyi-plus-vben5/packages/utils
Jin Mao 6b1aab9c67 fix: handle undefined children in generate-menus (#6117)
When children is undefined, use empty array as fallback to prevent potential runtime errors. This matches the behavior when hideChildrenInMenu is true.
2025-05-06 14:29:50 +08:00
..
2025-04-27 21:45:10 +08:00
2024-08-14 20:37:21 +08:00

@vben/utils

用于多个 app 公用的工具包,继承了 @vben-core/shared/utils 的所有能力。业务上有通用的工具函数可以放在这里。

用法

添加依赖

# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/utils

使用

import { isString } from '@vben/utils';