80
80
:http-request =" keyContentUpload"
81
81
>
82
82
<el-button type =" primary" >
83
- <Icon icon =" ep:upload" class =" mr-5px" /> 点击上传
83
+ <Icon icon =" ep:upload" class =" mr-5px" />
84
+ 点击上传
84
85
</el-button >
85
86
</el-upload >
86
87
</el-form-item >
120
121
:http-request =" privateKeyContentUpload"
121
122
>
122
123
<el-button type =" primary" >
123
- <Icon icon =" ep:upload" class =" mr-5px" /> 点击上传
124
+ <Icon icon =" ep:upload" class =" mr-5px" />
125
+ 点击上传
124
126
</el-button >
125
127
</el-upload >
126
128
</el-form-item >
148
150
:http-request =" privateCertContentUpload"
149
151
>
150
152
<el-button type =" primary" >
151
- <Icon icon =" ep:upload" class =" mr-5px" /> 点击上传
153
+ <Icon icon =" ep:upload" class =" mr-5px" />
154
+ 点击上传
152
155
</el-button >
153
156
</el-upload >
154
157
</el-form-item >
@@ -310,7 +313,7 @@ const pemFileBeforeUpload = (file) => {
310
313
/**
311
314
* 读取 apiclient_key.pem 到 privateKeyContent 字段
312
315
*/
313
- const privateKeyContentUpload = (event ) => {
316
+ const privateKeyContentUpload = async (event ) => {
314
317
const readFile = new FileReader ()
315
318
readFile .onload = (e : any ) => {
316
319
formData .value .config .privateKeyContent = e .target .result
@@ -321,7 +324,7 @@ const privateKeyContentUpload = (event) => {
321
324
/**
322
325
* 读取 apiclient_cert.pem 到 privateCertContent 字段
323
326
*/
324
- const privateCertContentUpload = (event ) => {
327
+ const privateCertContentUpload = async (event ) => {
325
328
const readFile = new FileReader ()
326
329
readFile .onload = (e : any ) => {
327
330
formData .value .config .privateCertContent = e .target .result
@@ -332,7 +335,7 @@ const privateCertContentUpload = (event) => {
332
335
/**
333
336
* 读取 apiclient_cert.p12 到 keyContent 字段
334
337
*/
335
- const keyContentUpload = (event ) => {
338
+ const keyContentUpload = async (event ) => {
336
339
const readFile = new FileReader ()
337
340
readFile .onload = (e : any ) => {
338
341
formData .value .config .keyContent = e .target .result .split (' ,' )[1 ]
0 commit comments