Skip to content

Commit

Permalink
feat: 文件在线预览支持更多的文件类型 #2765
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Dec 31, 2024
1 parent fc85ff4 commit 135d34c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
basicFileText: '',
hasError: false,
pageUrl: '',
showFrame: true
showFrame: false
}
},
computed: {
Expand Down Expand Up @@ -94,8 +94,7 @@
}).catch((e) => {
this.hasError = true
})
} else if (this.filePath.endsWith('.xlsx')
) {
} else if (this.filePath.endsWith('.xlsx')) {
customizePreviewOfficeFile(this.projectId, this.repoName, '/' + this.filePath).then(res => {
this.previewExcel = true
this.dataSource = res.data
Expand Down

0 comments on commit 135d34c

Please sign in to comment.