Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
de2cab2f
Commit
de2cab2f
authored
Apr 13, 2026
by
erio
Committed by
陈曦
Apr 14, 2026
Browse files
fix(frontend): lower QR code error correction level to reduce density
Closes #1607
parent
0e2a3901
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/payment/PaymentQRDialog.vue
View file @
de2cab2f
...
...
@@ -154,7 +154,7 @@ async function renderQR() {
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
220
,
margin
:
2
,
errorCorrectionLevel
:
logoSrc
?
'
H
'
:
'
M
'
,
errorCorrectionLevel
:
logoSrc
?
'
M
'
:
'
L
'
,
})
if
(
!
logoSrc
)
return
const
canvas
=
qrCanvas
.
value
...
...
frontend/src/components/payment/PaymentStatusPanel.vue
View file @
de2cab2f
...
...
@@ -199,7 +199,7 @@ async function renderQR() {
if
(
!
qrCanvas
.
value
||
!
qrUrl
.
value
)
return
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
220
,
margin
:
2
,
errorCorrectionLevel
:
'
H
'
,
errorCorrectionLevel
:
'
M
'
,
})
}
...
...
frontend/src/views/user/PaymentQRCodeView.vue
View file @
de2cab2f
...
...
@@ -94,12 +94,12 @@ async function renderQR() {
await
nextTick
()
if
(
!
qrCanvas
.
value
||
!
qrUrl
.
value
)
return
// Use
high
error correction to support logo overlay
// Use
medium
error correction to support logo overlay
while keeping QR code scannable
const
logoSrc
=
getLogoForType
()
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
256
,
margin
:
2
,
errorCorrectionLevel
:
logoSrc
?
'
H
'
:
'
M
'
,
errorCorrectionLevel
:
logoSrc
?
'
M
'
:
'
L
'
,
})
if
(
!
logoSrc
)
return
...
...
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