Commit 6aec78db by zhaochengxiang

bug fix

parent 505f84b1
...@@ -155,8 +155,8 @@ class Model extends React.Component { ...@@ -155,8 +155,8 @@ class Model extends React.Component {
const index = (permissions||[]).findIndex(item => item.privilegedObjectId === catalogId); const index = (permissions||[]).findIndex(item => item.privilegedObjectId === catalogId);
if (index !== -1) { if (index !== -1) {
permissions[index].optionList?.forEach(item => { permissions[index].optionList?.forEach(item => {
if (item.name === '新增' && item.enabled === false) { if (item.name === '新增' && item.enabled === true) {
canAdd = false; canAdd = true;
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment