feat: 添加chart报错提示

This commit is contained in:
zhangyu
2021-12-17 09:47:50 +08:00
parent 0e27bc6cc4
commit 7e90752e3e
6 changed files with 44 additions and 8 deletions

View File

@@ -355,7 +355,7 @@ export default {
},
downloadTxt () {
const element = document.createElement('a')
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponentComponent(this.fileContent))
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(this.fileContent))
element.setAttribute('download', 'Nezha recovery codes')
element.style.display = 'none'
element.click()