Revert "style: 私密分享的office文件挂载后无法预览的问题"
This reverts commit a20502fc053f8b7b939dc4ae6185d83f28bc3ee4.
This commit is contained in:
parent
a20502fc05
commit
02d3e068d7
@ -142,14 +142,6 @@ export default {
|
||||
if (!res) {
|
||||
return []
|
||||
}
|
||||
console.log('checkChunkUploadedByResponse', res)
|
||||
if (res.duplicate) {
|
||||
if (confirm("文件已存在, 确定要覆盖吗?")) {
|
||||
return true
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}
|
||||
if (res.pass) {
|
||||
// 秒传
|
||||
return true
|
||||
@ -330,7 +322,6 @@ export default {
|
||||
}
|
||||
},
|
||||
onFilesAdded(files) {
|
||||
console.log('onFilesAdded', files)
|
||||
if (files.length === 0) {
|
||||
return
|
||||
}
|
||||
@ -404,18 +395,6 @@ export default {
|
||||
return;
|
||||
}
|
||||
const data = res.data
|
||||
|
||||
// if (data.duplicate) {
|
||||
// console.log(this.uploader)
|
||||
// this.$refs.uploader.fileRemoved(file)
|
||||
// if (confirm("文件已存在, 确定要覆盖吗?")) {
|
||||
// this.$refs.uploader.fileAdded(file)
|
||||
// this.$refs.uploader.uploadStart()
|
||||
// } else {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
|
||||
// 服务器自定义的错误(即虽返回200,但是是错误的情况),这种错误是Uploader无法拦截的
|
||||
if (!data.upload) {
|
||||
// this.$message({ message: res.message, type: 'error' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user