Commit e723b303 authored by “yiyousong”'s avatar “yiyousong”

pref:修改应用下载

parent 123b9272
...@@ -164,10 +164,11 @@ export default { ...@@ -164,10 +164,11 @@ export default {
this.searchVal = ""; this.searchVal = "";
}, },
handleDowload(url, systemServiceName) { handleDowload(url, systemServiceName) {
console.log(systemServiceName); let index = url.lastIndexOf(".");
let suffix = url.slice(index);
const a = document.createElement("a"); const a = document.createElement("a");
a.href = url; a.href = url;
a.download = systemServiceName; a.download = systemServiceName + suffix;
a.click(); a.click();
}, },
//获取列表 //获取列表
...@@ -177,7 +178,6 @@ export default { ...@@ -177,7 +178,6 @@ export default {
i.curInfo = []; i.curInfo = [];
}); });
this.listArr = [...res.data.data]; this.listArr = [...res.data.data];
console.log(this.listArr);
this.getServiceList(); this.getServiceList();
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment