Commit 02443bd4 by zhaochengxiang

全文检索模型增加时间戳

parent 5b82f484
export const AnchorId = 'id';
export const AnchorTimestamp = 'timestamp';
export const AnchorDid = 'did';
export const AnchorLocation = 'location';
\ No newline at end of file
......@@ -5,7 +5,7 @@ import { PlusOutlined, EditOutlined, SyncOutlined, DeleteOutlined } from '@ant-
import UpdateTreeItemModal from './UpdateTreeItemModal';
import { dispatch } from '../../../../model';
import { showMessage, getQueryParam } from '../../../../util';
import { AnchorDid, AnchorId } from '../../../../util/constant';
import { AnchorDid, AnchorId, AnchorTimestamp } from '../../../../util/constant';
import './ModelTree.less';
......@@ -23,6 +23,7 @@ const ModelTree = (props) => {
const [modal, contextHolder] = Modal.useModal();
const timestamp = getQueryParam(AnchorTimestamp, props.location.search);
const id = getQueryParam(AnchorId, props.location.search);
const itemRef = useRef();
......@@ -35,7 +36,7 @@ const ModelTree = (props) => {
getTreeData();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [id])
}, [timestamp])
const getDataModelLocation = () => {
setLoading(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