Implement API security baseline (sys_user, JWT, audit fields, transactions, unique constraints) and Web real login with 401 handling. Document setup and development workflows in root, WmsLite.Api, and WmsLite.Web README files. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
777 B
TypeScript
24 lines
777 B
TypeScript
/**
|
|
* 多标签文案:与各业务叶子路由 pathname 对齐(参见 config/config.ts)。
|
|
*/
|
|
export const ROUTE_TAB_TITLES: Record<string, string> = {
|
|
'/home': '主页',
|
|
'/base/warehouse': '仓库',
|
|
'/base/area': '库区',
|
|
'/base/zone': '分区',
|
|
'/base/location': '库位',
|
|
'/base/material': '物料',
|
|
'/base/container': '容器',
|
|
'/inventory/balance': '库存余额',
|
|
'/inventory/transactions': '库存流水',
|
|
'/orders/inbound': '入库单',
|
|
'/orders/outbound': '出库单',
|
|
'/orders/transfer': '移库单',
|
|
'/orders/stocktake': '盘点单',
|
|
'/templates': '单据模板',
|
|
};
|
|
|
|
export function resolveRouteTabTitle(pathname: string): string {
|
|
return ROUTE_TAB_TITLES[pathname] ?? pathname.split('/').filter(Boolean).pop() ?? '页面';
|
|
}
|