inImports () { // location.origin compatibility IEs IF (! window.location.origin) { window.location.origin = window.location.protocol + "//" + + window.location.hostname (window.location.port ? ':' + window.location.port: '' ); } // with window oPen () method with the origin of the current open path to the file (I use vue3.0 in the public folder directly below the new file (dowloadfile )) the window.open (window.location.origin + '/dowloadfile/inputModel.xlsx' ) }