We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c5d63 commit aadb6f5Copy full SHA for aadb6f5
1 file changed
src/mixins/utils.ts
@@ -197,7 +197,8 @@ export default class UtilsMixin extends Vue {
197
198
download (file: string, path: string) {
199
const filename = file || ''
200
- this.getFile(`/server/files/${path}/${file}`, { responseType: 'blob' })
+ const filepath = (path) ? `/server/files/${path}/${file}` : `/server/files/${file}`
201
+ this.getFile(filepath, { responseType: 'blob' })
202
.then((response: AxiosResponse) => {
203
const url = window.URL.createObjectURL(new Blob([response.data]))
204
const link = document.createElement('a')
0 commit comments