Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Jul 17, 2024
1 parent 561bced commit 4256bac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/AdminFilesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

<script>
import { ref, onMounted, computed } from 'vue';
import { openURL, useQuasar } from 'quasar';
import { useQuasar } from 'quasar';
import { _fetch } from 'src/util/fetch_api';
import { getAccessToken } from 'src/util/auth';
Expand Down Expand Up @@ -218,7 +218,9 @@ export default {
if (row.is_dir) {
folder_current.value = row.filepath;
} else {
openURL(`/api/admin/files/file/${row.filepath}`);
_fetch(`/api/admin/files/file/${row.filepath}`, {})
.then((res) => res.blob())
.then((blob) => window.open(URL.createObjectURL(blob)));
}
};
Expand Down

0 comments on commit 4256bac

Please sign in to comment.