Commit c7604009 by zhaochengxiang

bug fix

parent 529982bb
...@@ -145,6 +145,7 @@ const FC = (props) => { ...@@ -145,6 +145,7 @@ const FC = (props) => {
const $$assetDirectorySubject = AssetDirectorySubject.subscribe((props) => { const $$assetDirectorySubject = AssetDirectorySubject.subscribe((props) => {
if (props.type === 'element-change') { if (props.type === 'element-change') {
getElements() getElements()
getAssets()
} }
}) })
...@@ -914,7 +915,10 @@ const FC = (props) => { ...@@ -914,7 +915,10 @@ const FC = (props) => {
type: undefined, type: undefined,
reference: undefined reference: undefined
}) })
refresh && getElements() if (refresh) {
getElements()
getAssets()
}
}} }}
/> />
<FilterElementValue <FilterElementValue
......
...@@ -187,6 +187,7 @@ const FC = (props) => { ...@@ -187,6 +187,7 @@ const FC = (props) => {
const $$assetDirectorySubject = AssetDirectorySubject.subscribe((props) => { const $$assetDirectorySubject = AssetDirectorySubject.subscribe((props) => {
if (props.type === 'element-change') { if (props.type === 'element-change') {
getElements() getElements()
getAssets()
} }
}) })
...@@ -720,7 +721,7 @@ const FC = (props) => { ...@@ -720,7 +721,7 @@ const FC = (props) => {
const onFilterElementClick = () => { const onFilterElementClick = () => {
setFilterElementParams({ setFilterElementParams({
visible: true, visible: true,
type: (type === ResourceManageReference) ? 'admin' : 'user', type: 'admin',
reference: type reference: type
}) })
} }
...@@ -1346,7 +1347,10 @@ const FC = (props) => { ...@@ -1346,7 +1347,10 @@ const FC = (props) => {
type: undefined, type: undefined,
reference: undefined reference: undefined
}) })
refresh && getElements() if (refresh) {
getElements()
getAssets()
}
}} }}
/> />
<FilterElementValue <FilterElementValue
......
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