diff --git a/src/views/page/systemSet-con.vue b/src/views/page/systemSet-con.vue index 58e309c..e582522 100644 --- a/src/views/page/systemSet-con.vue +++ b/src/views/page/systemSet-con.vue @@ -149,7 +149,7 @@ this.dataInit(); link.href = url; // 设置文件名 - link.setAttribute('download', `${devicecode}.txt`); + link.setAttribute('download', `控制器-${devicecode}.txt`); // 模拟点击下载 document.body.appendChild(link); diff --git a/src/views/page/systemSet.vue b/src/views/page/systemSet.vue index df25eae..4e6f9c4 100644 --- a/src/views/page/systemSet.vue +++ b/src/views/page/systemSet.vue @@ -133,7 +133,7 @@ export default { link.href = url; // 设置文件名 - link.setAttribute('download', `${devicecode}.txt`); + link.setAttribute('download', `施肥机-${devicecode}.txt`); // 模拟点击下载 document.body.appendChild(link);