Commit 6e12bbdb authored by 华国豪's avatar 华国豪 🙄

1

parent 2047524b
...@@ -210,11 +210,9 @@ ...@@ -210,11 +210,9 @@
methods: { methods: {
downLoadPZ: function (src) { downLoadPZ: function (src) {
var a = document.createElement('a') let dom = document.querySelector("#blankLink")
var event = new MouseEvent('click') dom.href=src
a.download = '下载图片名称' dom.click()
a.href = src;
a.dispatchEvent(event)
}, },
stringToArr(str) { stringToArr(str) {
return str.split(',') return str.split(',')
......
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