mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
modify code
This commit is contained in:
@@ -343,7 +343,7 @@ class DirentListItem extends React.Component {
|
|||||||
|
|
||||||
onItemDragStart = (e) => {
|
onItemDragStart = (e) => {
|
||||||
let nodeRootPath = '';
|
let nodeRootPath = '';
|
||||||
nodeRootPath = this.props.path === '/' ? `${this.props.path}${this.props.dirent.name}` : this.props.path;
|
nodeRootPath = this.props.path === '/' ? `${this.props.path}${this.props.dirent.name}` : `${this.props.path}/${this.props.dirent.name}`;
|
||||||
let dragStartItemData = {nodeDirent: this.props.dirent, nodeParentPath: this.props.path, nodeRootPath: nodeRootPath};
|
let dragStartItemData = {nodeDirent: this.props.dirent, nodeParentPath: this.props.path, nodeRootPath: nodeRootPath};
|
||||||
dragStartItemData = JSON.stringify(dragStartItemData);
|
dragStartItemData = JSON.stringify(dragStartItemData);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user