|
|
@@ -381,7 +381,7 @@ export default { |
|
|
|
this.onSocketFileChangeDetected.bind(this), (localWorkspacePrefix) => { this.localWorkspacePrefix = localWorkspacePrefix;}, |
|
|
|
errorEvent => { notify.error('本地网关通讯失败'); } |
|
|
|
); |
|
|
|
// this.intervalTask(); |
|
|
|
this.intervalTask(); |
|
|
|
}, |
|
|
|
destroyed: function () { |
|
|
|
window.removeEventListener("scroll", this.onscroll); |
|
|
@@ -540,7 +540,7 @@ export default { |
|
|
|
this.currentFolder = folder; |
|
|
|
this.breadcrumbFolderList.push(folder); |
|
|
|
this.clearCurrentFolderFiles(); |
|
|
|
this.fetchFolderFileList(); |
|
|
|
this.fetchFolderFiles(); |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 当前工作点击 |
|
|
@@ -685,7 +685,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
// 插入上传队列 |
|
|
|
if(!this.uploadFileList.find(f => f === uploadFile)) { |
|
|
|
if(!this.uploadFileList.find(f => f.id === uploadFile.id)) { |
|
|
|
this.uploadFileList.push(uploadFile); |
|
|
|
} |
|
|
|
}, |
|
|
@@ -760,6 +760,7 @@ export default { |
|
|
|
file.workStatus = NOT_WORKING; |
|
|
|
this.addLocalFileRecord(fileKey, IpfsCid); |
|
|
|
this.removeFileLoadingState(fileId); |
|
|
|
this.workFileList = this.workFileList.map(iFile => iFile.id === file.id ? { ...iFile, ipfsCid: IpfsCid, workStatus: NOT_WORKING } : iFile); |
|
|
|
}, |
|
|
|
(progressData) => { |
|
|
|
const { process, hash, size, currentSize, unit } = progressData; |
|
|
|