mirror of
https://github.com/directus/directus.git
synced 2026-01-26 02:18:15 -05:00
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user