Commit fcd2e0b5 by zhaochengxiang

增加跳转

parent 32c77705
...@@ -10,7 +10,7 @@ import ImportDirectory from './ImportDirectory'; ...@@ -10,7 +10,7 @@ import ImportDirectory from './ImportDirectory';
import UpdateDirectoryModal from './UpdateDirectoryModal'; import UpdateDirectoryModal from './UpdateDirectoryModal';
import CustomDirectoryModal from './CustomDirectoryModal'; import CustomDirectoryModal from './CustomDirectoryModal';
import { showMessage, getQueryParam } from '../../../../util'; import { showMessage, getQueryParam } from '../../../../util';
import { AnchorTimestamp, AnchorId, AssetManageReference, AssetBrowseReference, ResourceBrowseReference, AssetMountReference } from '../../../../util/constant'; import { AnchorTimestamp, AnchorId, AssetManageReference, AssetBrowseReference, ResourceBrowseReference, AssetMountReference, AnchorDirId } from '../../../../util/constant';
import { highlightSearchContentByTerms } from '../../../../util'; import { highlightSearchContentByTerms } from '../../../../util';
import './AssetTree.less'; import './AssetTree.less';
...@@ -49,6 +49,7 @@ const AssetTree = (props) => { ...@@ -49,6 +49,7 @@ const AssetTree = (props) => {
const timestamp = getQueryParam(AnchorTimestamp, props?.location?.search); const timestamp = getQueryParam(AnchorTimestamp, props?.location?.search);
const id = getQueryParam(AnchorId, props?.location?.search); const id = getQueryParam(AnchorId, props?.location?.search);
const did = getQueryParam(AnchorDirId, props?.location?.search);
const treeDataRef = useRef([]); const treeDataRef = useRef([]);
const dataListRef = useRef([]); const dataListRef = useRef([]);
...@@ -64,6 +65,8 @@ const AssetTree = (props) => { ...@@ -64,6 +65,8 @@ const AssetTree = (props) => {
useEffect(() => { useEffect(() => {
if ((id||'') !== '') { if ((id||'') !== '') {
getDataAssetLocationThenGetTreeData(); getDataAssetLocationThenGetTreeData();
} else if ((did||'') !== '') {
getAllDirectoryAsTree(true, did);
} else { } else {
getAllDirectoryAsTree(true); getAllDirectoryAsTree(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