From adc71de160e08aef941e95acb3de381688ba2266 Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 30 Jan 2022 16:35:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E4=BC=A0p8key?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/user/FirSuperSignBase.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fir_client/src/components/user/FirSuperSignBase.vue b/fir_client/src/components/user/FirSuperSignBase.vue index 305804b..16c89b3 100644 --- a/fir_client/src/components/user/FirSuperSignBase.vue +++ b/fir_client/src/components/user/FirSuperSignBase.vue @@ -558,15 +558,15 @@ + :rows="6" placeholder="请填写或者上传p8key" type="textarea"/> 点击上传p8证书文件 @@ -1137,7 +1137,7 @@ export default { dialogaddDeveloperVisible: false, importcertDeveloperVisible: false, title: "", - editdeveloperinfo: {auth_type: 0, usable_number: 100, app_limit_number: 100,p8key: ''}, + editdeveloperinfo: {auth_type: 0, usable_number: 100, app_limit_number: 100, p8key: ''}, isedit: false, placeholder: "", pagination: {"currentPage": 1, "total": 0, "pagesize": 10}, @@ -1328,16 +1328,16 @@ export default { } }) }, - beforep8keyUpload(file){ + beforep8keyUpload(file) { let reader = new FileReader(); //这是核心,读取操作就是由它完成. reader.readAsText(file); //读取文件的内容,也可以读取文件的URL // eslint-disable-next-line no-unused-vars reader.onload = res => { //当读取完成后回调这个函数,然后此时文件的内容存储到了result中,直接操作即可 let text = reader.result; - if(text.startsWith('-----BEGIN PRIVATE KEY')){ + if (text.startsWith('-----BEGIN PRIVATE KEY')) { this.editdeveloperinfo.p8key = reader.result.toString() - }else { + } else { this.$message.warning("p8key文件不正确") } }