Distal download the template, not need to receive the rear end of the binary stream (non-dynamic) downloaded directly from the front end of the operation

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' ) 
}

 

Guess you like

Origin www.cnblogs.com/blueswithchenxing/p/11282793.html