/ / the export file exportConfig () {const content = output. The replace (/ (| \ r \ n)/gm, '\ r \ n') / / file content (here I will return to the back of the background for regular match, If ("download" in document.createElement("a")){const elink = document.createElement("a") elink.download = filename elink.style.display = "none" elink.href = "data:text/paint; utf-8," + content document.body.appendChild(elink) elink.click() URL.revokeObjectURL(elink.href) document.body.removeChild(elink) } }Copy the code