| | |
| | | let url = ""; |
| | | if (res.data.type == 1) { |
| | | url = this.javaApi + "/img/" + res.data.fileUrl; |
| | | url = url.replace(/#/g, "%23"); |
| | | file.downloadIamge(url, row.fileName); |
| | | } else { |
| | | url = this.javaApi + "/word/" + res.data.fileUrl; |
| | | url = url.replace(/#/g, "%23"); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | link.download = row.fileName; |
| | |
| | | } else { |
| | | this.currentFile.url = this.javaApi + "/word/" + row.fileUrl; |
| | | } |
| | | this.currentFile.url = this.currentFile.url.replace(/#/g, "%23"); |
| | | this.lookFileVisible = true; |
| | | }, |
| | | handleBack() { |