mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
modify code
This commit is contained in:
@@ -343,7 +343,7 @@ class DirentListItem extends React.Component {
|
||||
|
||||
onItemDragStart = (e) => {
|
||||
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};
|
||||
dragStartItemData = JSON.stringify(dragStartItemData);
|
||||
|
||||
|
Reference in New Issue
Block a user