本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
2 lines
246 B
JavaScript
2 lines
246 B
JavaScript
function n(r){if(!r)return!0;try{const e=JSON.parse(localStorage.getItem("user")||"null");if(!e)return!1;if(e.roleCode==="SUPER_ADMIN")return!0;const t=e.permissionCodes||[];return t.includes("*")?!0:t.includes(r)}catch{return!1}}export{n as c};
|