<Button type="primary" @click="exportMoudle"><Icon type="ios-download-outline"></Icon>下載模板</Button>
exportMoudle:function(){
let link = document.createElement('a'); //創建a標籤
link.style.display = 'none'; //將a標籤隱藏
link.href = url; //給a標籤添加下載鏈接
link.setAttribute('download', fileName); // 要給a標籤添加一個download屬性,屬性值就是文件名稱 否則下載出來的文件是沒有屬性的
document.body.appendChild(link);
link.click(); //執行a標籤
}