diff --git a/src/client/views/index/components/Wallpaper/imgBox.vue b/src/client/views/index/components/Wallpaper/imgBox.vue index 82deb88..3ff067c 100644 --- a/src/client/views/index/components/Wallpaper/imgBox.vue +++ b/src/client/views/index/components/Wallpaper/imgBox.vue @@ -57,12 +57,13 @@ const handleDownload = (item) => { : item.split("x")[1], quality: 100, }); - const a = document.createElement("a"); - a.href = `http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=${url}`; - a.style = "display: none"; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); + window.open(`http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=${url}`); + // const a = document.createElement("a"); + // a.href = `http://image.baidu.com/search/down?tn=download&word=download&ie=utf8&fr=detail&url=${url}`; + // a.style = "display: none"; + // document.body.appendChild(a); + // a.click(); + // document.body.removeChild(a); }; const fullscreenSrc = ref("");