refactor: 迁移模块 constants 到共享常量包 - 新增 MES/WMS 共享业务常量导出 - 将 Mall 客服、IoT 缺失常量合并到 @vben/constants - 替换各模块本地 constants 引用 - 删除模块内重复 constants 文件 ``` |
||
|---|---|---|
| .. | ||
| src | ||
| README.md | ||
| package.json | ||
| tsconfig.json | ||
README.md
@vben/constants
用于多个 app 公用的常量,继承了 @vben-core/shared/constants 的所有能力。业务上有通用常量可以放在这里。
用法
添加依赖
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/constants
使用
import { LOGIN_PATH } from '@vben/constants';