1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00
Co-authored-by: 小强 <shuntian@Mac.lan>
This commit is contained in:
杨顺强
2025-06-03 11:19:48 +08:00
committed by GitHub
parent a1f6a0464a
commit d2631630b1
2 changed files with 2 additions and 0 deletions

View File

@@ -327,6 +327,7 @@ class FileUploader extends React.Component {
let isExist = this.notifiedFolders.some(item => {return item.name === dirent.name;}); let isExist = this.notifiedFolders.some(item => {return item.name === dirent.name;});
if (!isExist) { if (!isExist) {
this.notifiedFolders.push(dirent); this.notifiedFolders.push(dirent);
console.log('test dev: ', JSON.stringify(dirent));
this.props.onFileUploadSuccess(dirent); this.props.onFileUploadSuccess(dirent);
} }

View File

@@ -1715,6 +1715,7 @@ class LibContentView extends React.Component {
onFileUploadSuccess = (direntObject) => { onFileUploadSuccess = (direntObject) => {
const isExist = this.state.direntList.some(item => item.name === direntObject.name && item.type === direntObject.type); const isExist = this.state.direntList.some(item => item.name === direntObject.name && item.type === direntObject.type);
console.log('dev test: ', isExist);
if (isExist) { if (isExist) {
const dirent = this.state.direntList.find(dirent => dirent.name === direntObject.name && dirent.type === direntObject.type); const dirent = this.state.direntList.find(dirent => dirent.name === direntObject.name && dirent.type === direntObject.type);
const mtime = dayjs.unix(direntObject.mtime).fromNow(); const mtime = dayjs.unix(direntObject.mtime).fromNow();