Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0275cb6d
authored
May 11, 2024
by
DevDengChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复 el-upload 组件提示 http-request 属性报错的问题
parent
e1d2305d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/views/pay/app/components/channel/WeixinChannelForm.vue
+9
-6
No files found.
src/views/pay/app/components/channel/WeixinChannelForm.vue
View file @
0275cb6d
...
@@ -80,7 +80,8 @@
...
@@ -80,7 +80,8 @@
:http-request=
"keyContentUpload"
:http-request=
"keyContentUpload"
>
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
</el-button>
</el-button>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
...
@@ -120,7 +121,8 @@
...
@@ -120,7 +121,8 @@
:http-request=
"privateKeyContentUpload"
:http-request=
"privateKeyContentUpload"
>
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
</el-button>
</el-button>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
...
@@ -148,7 +150,8 @@
...
@@ -148,7 +150,8 @@
:http-request=
"privateCertContentUpload"
:http-request=
"privateCertContentUpload"
>
>
<el-button
type=
"primary"
>
<el-button
type=
"primary"
>
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
<Icon
icon=
"ep:upload"
class=
"mr-5px"
/>
点击上传
</el-button>
</el-button>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
...
@@ -310,7 +313,7 @@ const pemFileBeforeUpload = (file) => {
...
@@ -310,7 +313,7 @@ const pemFileBeforeUpload = (file) => {
/**
/**
* 读取 apiclient_key.pem 到 privateKeyContent 字段
* 读取 apiclient_key.pem 到 privateKeyContent 字段
*/
*/
const
privateKeyContentUpload
=
(
event
)
=>
{
const
privateKeyContentUpload
=
async
(
event
)
=>
{
const
readFile
=
new
FileReader
()
const
readFile
=
new
FileReader
()
readFile
.
onload
=
(
e
:
any
)
=>
{
readFile
.
onload
=
(
e
:
any
)
=>
{
formData
.
value
.
config
.
privateKeyContent
=
e
.
target
.
result
formData
.
value
.
config
.
privateKeyContent
=
e
.
target
.
result
...
@@ -321,7 +324,7 @@ const privateKeyContentUpload = (event) => {
...
@@ -321,7 +324,7 @@ const privateKeyContentUpload = (event) => {
/**
/**
* 读取 apiclient_cert.pem 到 privateCertContent 字段
* 读取 apiclient_cert.pem 到 privateCertContent 字段
*/
*/
const
privateCertContentUpload
=
(
event
)
=>
{
const
privateCertContentUpload
=
async
(
event
)
=>
{
const
readFile
=
new
FileReader
()
const
readFile
=
new
FileReader
()
readFile
.
onload
=
(
e
:
any
)
=>
{
readFile
.
onload
=
(
e
:
any
)
=>
{
formData
.
value
.
config
.
privateCertContent
=
e
.
target
.
result
formData
.
value
.
config
.
privateCertContent
=
e
.
target
.
result
...
@@ -332,7 +335,7 @@ const privateCertContentUpload = (event) => {
...
@@ -332,7 +335,7 @@ const privateCertContentUpload = (event) => {
/**
/**
* 读取 apiclient_cert.p12 到 keyContent 字段
* 读取 apiclient_cert.p12 到 keyContent 字段
*/
*/
const
keyContentUpload
=
(
event
)
=>
{
const
keyContentUpload
=
async
(
event
)
=>
{
const
readFile
=
new
FileReader
()
const
readFile
=
new
FileReader
()
readFile
.
onload
=
(
e
:
any
)
=>
{
readFile
.
onload
=
(
e
:
any
)
=>
{
formData
.
value
.
config
.
keyContent
=
e
.
target
.
result
.
split
(
','
)[
1
]
formData
.
value
.
config
.
keyContent
=
e
.
target
.
result
.
split
(
','
)[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment