Compare commits

...

2 Commits

Author SHA1 Message Date
陈劲松
5ee7631d25 Merge branch 'cherry-pick-53b40851' into 'dev-23.02'
CN-1156 fix: 修复s3=0时无法下载和预览的问题

See merge request cyber-narrator/cn-ui!32
2023-07-05 03:32:42 +00:00
chenjinsong
28c0b3aebf CN-1156 fix: 修复s3=0时无法下载和预览的问题
(cherry picked from commit 53b4085111)
2023-07-05 11:32:36 +08:00

View File

@@ -222,8 +222,14 @@ export default {
if (this.$refs.dataTable.loadingTableId === u.id) { // 列表单个下载
return
}
if (u.state !== 1 || u.upload !== 1) {
return
if (localStorage.getItem(storageKey.s3Enable) == 1) {
if (u.state !== 1 || u.upload !== 1) {
return
}
} else {
if (u.state !== 1) {
return
}
}
let fileName = ''
let url = ''
@@ -284,8 +290,14 @@ export default {
if (this.$refs.dataTable.loadingPreviewId === u.id) { // 列表单个下载
return
}
if (u.state !== 1 || u.upload !== 1) {
return
if (localStorage.getItem(storageKey.s3Enable) == 1) {
if (u.state !== 1 || u.upload !== 1) {
return
}
} else {
if (u.state !== 1) {
return
}
}
const params = {
id: u.id