The a tag in the vue project uses dynamic bind:href and then download does not take effect.

1.downlaod has no effect and opens the pdf directly in the browser. I really don"t understand what the reason is.

<a  class="downloadpdfbtn" :href=""http://ip/pdf/"+scope.row.name.split(".")[0]+"-8.pdf""  download  type="primary" size="small"><span id="downFile"></span></a>

    
Mar.21,2021

Nobody knows why? Is it because download only supports downloading of cognate files


pc, then check whether the path is correct? Mobile will not download ~


is the problem solved? This question has already made me lose a handful of hair

Menu