@@ -178,7 +178,7 @@ export default {
})
this.$api.project.initCode({
files: fileTmps,
- folders: type === 2 ? folderTmp : folder.concat(folderTmp),
+ folders: type === 2 ? folder : folder.concat(folderTmp),
type: 1,
projectId: this.projectId
}).then(res => {
@@ -67,6 +67,7 @@
<span class="bold main-color font-16 mb-10">{{ folderName }}</span>
<uploadFile :data='{type:1,toStatus:0}' :max='20'
@close='show = false'
+ accept='.doc,docx,.pdf,.xls,.xlsx,.png,.jpg,.jpeg,.ppt,pptx'
@success='success'/>
</div>
</el-dialog>