fix: web terminal connect 页面按钮点击无效

This commit is contained in:
zhangyu
2022-03-22 15:10:16 +08:00
parent e2618c87b2
commit ae02ca76c9
2 changed files with 8 additions and 8 deletions

View File

@@ -510,13 +510,13 @@ export default {
host: this.customConnect.host,
port: this.customConnect.port,
authType: this.customConnect.authType,
authUsername: encodeURIComponentComponent(this.customConnect.authUsername),
authUsername: encodeURIComponent(this.customConnect.authUsername),
authPin: this.encode(this.customConnect.authPin),
authPriKey: encodeURIComponentComponent(this.customConnect.authPriKey),
authUserTip: encodeURIComponentComponent(this.customConnect.authUserTip),
authPinTip: encodeURIComponentComponent(this.customConnect.authPinTip),
authProtocolPort: encodeURIComponentComponent(this.customConnect.authProtocolPort),
authProtocol: encodeURIComponentComponent(this.customConnect.authProtocol)
authPriKey: encodeURIComponent(this.customConnect.authPriKey),
authUserTip: encodeURIComponent(this.customConnect.authUserTip),
authPinTip: encodeURIComponent(this.customConnect.authPinTip),
authProtocolPort: encodeURIComponent(this.customConnect.authProtocolPort),
authProtocol: encodeURIComponent(this.customConnect.authProtocol)
}
}
this.editableTabsValue = newTabName
@@ -950,7 +950,7 @@ export default {
},
encode (str) {
// 对编码的字符串转化base64
const base64 = encodeURIComponentComponent(btoa(str))
const base64 = encodeURIComponent(btoa(str))
return base64
},
closeAssetCustom () {

View File

@@ -369,7 +369,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()