@easyflow/constants
用于多个 app 公用的常量,继承了 @easyflow-core/shared/constants 的所有能力。业务上有通用常量可以放在这里。
用法
添加依赖
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @easyflow/constants
使用
import { LOGIN_PATH } from '@easyflow/constants';
用于多个 app 公用的常量,继承了 @easyflow-core/shared/constants 的所有能力。业务上有通用常量可以放在这里。
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @easyflow/constants
import { LOGIN_PATH } from '@easyflow/constants';