Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
02443bd4
Commit
02443bd4
authored
Jun 16, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全文检索模型增加时间戳
parent
5b82f484
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
constant.js
src/util/constant.js
+2
-0
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+3
-2
No files found.
src/util/constant.js
View file @
02443bd4
export
const
AnchorId
=
'id'
;
export
const
AnchorTimestamp
=
'timestamp'
;
export
const
AnchorDid
=
'did'
;
export
const
AnchorLocation
=
'location'
;
\ No newline at end of file
src/view/Manage/Model/Component/ModelTree.jsx
View file @
02443bd4
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment