Commit 602d8381 by zhaochengxiang

资产路径

parent f3377bb8
...@@ -51,7 +51,7 @@ const AssetAction = (props) => { ...@@ -51,7 +51,7 @@ const AssetAction = (props) => {
} }
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [id]) }, [id, dirId])
const getAssetPaths = () => { const getAssetPaths = () => {
dispatch({ dispatch({
...@@ -410,7 +410,9 @@ const AssetAction = (props) => { ...@@ -410,7 +410,9 @@ const AssetAction = (props) => {
{ {
(assetPaths||[]).map((item, key) => { (assetPaths||[]).map((item, key) => {
return ( return (
<a key={key} onClick={() => { jumpToPath(item); }}>{highlightSearchContentByTerms(item?.dataAssetName||'',[assets.currentPath])}</a> <a key={key} onClick={() => { jumpToPath(item); }}>
<span style={{ color: (item?.dataAssetName===assets.currentPath)?'#f50':'' }}>{item?.dataAssetName||''}</span>
</a>
); );
}) })
} }
......
import React,{ useState, useEffect, useRef, useMemo } from "react"; import React,{ useState, useEffect, useRef } from "react";
import { Button, Pagination, Space, Modal, Input, Table, Tooltip, Checkbox, Typography, Dropdown, Menu } from "antd"; import { Button, Pagination, Space, Modal, Input, Table, Tooltip, Checkbox, Typography, Dropdown, Menu } from "antd";
import classNames from 'classnames'; import classNames from 'classnames';
import SmoothScroll from 'smooth-scroll'; import SmoothScroll from 'smooth-scroll';
......
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