From 0f16275d8d5a237a9c011ef71c8bb2bc76a75b7f Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 13 Aug 2021 14:29:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E6=B7=BB=E5=8A=A0=20code?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/login.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index e44ed4a99..ae42649a7 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -218,6 +218,7 @@ export default { this.loginSuccess(res) } else { this.authToken = res.data.authToken + this.$message.error(res.msg) } }) }, @@ -309,7 +310,7 @@ export default { downloadTxt () { const element = document.createElement('a') element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(this.fileContent)) - element.setAttribute('download', 'Recovery codes') + element.setAttribute('download', 'Nezha recovery codes') element.style.display = 'none' element.click() },