Fix download button not having token

Fixes #3305
This commit is contained in:
rijkvanzanten
2020-12-07 14:27:57 -05:00
parent 6bf9465b7f
commit 70c6484fcc

View File

@@ -417,7 +417,7 @@ export default defineComponent({
}
function downloadFile() {
const filePath = getRootPath() + `assets/${props.primaryKey}?download`;
const filePath = addTokenToURL(getRootPath() + `assets/${props.primaryKey}?download`);
window.open(filePath, '_blank');
}