Commit 97b620fe by zhaochengxiang

模型新增权限

parent 4ea50732
...@@ -150,8 +150,8 @@ class Model extends React.Component { ...@@ -150,8 +150,8 @@ class Model extends React.Component {
} }
if (catalogId !== prevState.catalogId || permissions !== prevState.permissions) { if (catalogId !== prevState.catalogId || permissions !== prevState.permissions) {
let canAdd = (currentView === 'branch'); let canAdd = (currentView !== 'dir');
if (currentView !== 'branch') { if (currentView === 'dir') {
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 => {
......
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