diff --git a/src/pages/Container/Notice/List/index.js b/src/pages/Container/Notice/List/index.js index a5f75f3..1b7cb9b 100644 --- a/src/pages/Container/Notice/List/index.js +++ b/src/pages/Container/Notice/List/index.js @@ -18,17 +18,6 @@ function List(props) { form, }); - // 临时假权限函数,用于开发测试 - const _hasPermission = (permissionCode) => { - // 在开发环境中返回true,生产环境可以根据实际权限系统调整 - const fakePermissions = [ - "notice-add", - "notice-edit", - "notice-remove", - ]; - return fakePermissions.includes(permissionCode); - }; - return ( ( - {_hasPermission("notice-add") && ( - - )} + )} columns={[ @@ -104,35 +91,32 @@ function List(props) { > 查看 - {_hasPermission("notice-edit") && ( - - )} - {_hasPermission("notice-remove") && ( - - )} + + + ), },