Explorar el Código

修正上传文件时会创建空名的文件夹的问题

dev-remain
zhengzhou hace 4 años
padre
commit
0526198d38
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/views/main_web/workspace/workspace.new.vue

+ 2
- 1
src/views/main_web/workspace/workspace.new.vue Ver fichero

@@ -689,6 +689,7 @@ export default {
this.subFolderMap = { ...this.subFolderMap, ...folderResInfo.folderMap };
this.resolveUploadFileList(this.workFileList);
this.workSubFolderList = folderResInfo.folder;
// this.workSubFolderList = uniqBy(this.workSubFolderList.concat(folderResInfo.folder), folder => folder.id);
// resolve dupilicate folders
this.tempWorkSubFolderList = this.tempWorkSubFolderList.filter(tempFolder => !folderResInfo.folder.some(folder => folder.id === tempFolder.id));
this.cooperationFileList = folderResInfo.coordinationFiles;
@@ -835,7 +836,7 @@ export default {
const params = {
projectId: this.projectId,
projectName: this.projectName,
folderId, folderName, folderLevelId: levelId, distFileRelativePath: `${folderPath ? `${folderPath}\\`:''}${relativePath?`${relativePath}`:''}`.replace(/(\\)+/g, '/'),
folderId, folderName, folderLevelId: levelId, distFileRelativePath: [folderPath, relativePath].filter(a => a).join('\\').replace(/(\\)+/g, '/'),
fileName, fileExtension, sourceFilePath,
fileList: workFileList,
onSuccess: (file) => { // onSuccess


Cargando…
Cancelar
Guardar