Merge branch 'cherry-pick-53b40851' into 'dev-23.02'
CN-1156 fix: 修复s3=0时无法下载和预览的问题 See merge request cyber-narrator/cn-ui!32
This commit is contained in:
@@ -222,9 +222,15 @@ export default {
|
|||||||
if (this.$refs.dataTable.loadingTableId === u.id) { // 列表单个下载
|
if (this.$refs.dataTable.loadingTableId === u.id) { // 列表单个下载
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (localStorage.getItem(storageKey.s3Enable) == 1) {
|
||||||
if (u.state !== 1 || u.upload !== 1) {
|
if (u.state !== 1 || u.upload !== 1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (u.state !== 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
let fileName = ''
|
let fileName = ''
|
||||||
let url = ''
|
let url = ''
|
||||||
let params = {}
|
let params = {}
|
||||||
@@ -284,9 +290,15 @@ export default {
|
|||||||
if (this.$refs.dataTable.loadingPreviewId === u.id) { // 列表单个下载
|
if (this.$refs.dataTable.loadingPreviewId === u.id) { // 列表单个下载
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (localStorage.getItem(storageKey.s3Enable) == 1) {
|
||||||
if (u.state !== 1 || u.upload !== 1) {
|
if (u.state !== 1 || u.upload !== 1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (u.state !== 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
id: u.id
|
id: u.id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user