|
@@ -334,6 +334,9 @@ export default {
|
|
if (!this.islogin) {
|
|
if (!this.islogin) {
|
|
return '开通文库会员免费阅读全文'
|
|
return '开通文库会员免费阅读全文'
|
|
}
|
|
}
|
|
|
|
+ if(this.docLoadError) {
|
|
|
|
+ return '下载文档阅读全文'
|
|
|
|
+ }
|
|
// 会员
|
|
// 会员
|
|
if (this.docsInfo?.docStatus > 0 || (this.buyed === 1 && this.datas.source === 2 && this.datas.docFileType !== 2)) {
|
|
if (this.docsInfo?.docStatus > 0 || (this.buyed === 1 && this.datas.source === 2 && this.datas.docFileType !== 2)) {
|
|
btnText = '下载文档阅读全文'
|
|
btnText = '下载文档阅读全文'
|
|
@@ -588,7 +591,8 @@ export default {
|
|
}
|
|
}
|
|
switch (fileExtensions[FileIndex]) {
|
|
switch (fileExtensions[FileIndex]) {
|
|
case 'docx':
|
|
case 'docx':
|
|
- this.fileSrc.docSrc = res.data.data
|
|
|
|
|
|
+ // this.fileSrc.docSrc = res.data.data
|
|
|
|
+ this.ddErrorPreview()
|
|
break
|
|
break
|
|
case 'xlsx':
|
|
case 'xlsx':
|
|
this.excelOptions.xls = false
|
|
this.excelOptions.xls = false
|