Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
ccc5aa81
Commit
ccc5aa81
authored
Dec 11, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 详情页二维码为空报错修正
parent
620c4ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
CommonQrcode.vue
src/components/common/CommonQrcode.vue
+14
-12
No files found.
src/components/common/CommonQrcode.vue
View file @
ccc5aa81
...
@@ -20,17 +20,19 @@ const props = withDefaults(
...
@@ -20,17 +20,19 @@ const props = withDefaults(
const
canvasRef
=
ref
<
HTMLCanvasElement
>
();
const
canvasRef
=
ref
<
HTMLCanvasElement
>
();
onMounted
(()
=>
{
onMounted
(()
=>
{
QRCode
.
toCanvas
(
if
(
props
.
content
)
{
canvasRef
.
value
,
QRCode
.
toCanvas
(
props
.
content
,
canvasRef
.
value
,
{
props
.
content
,
width
:
68
,
{
margin
:
0
,
width
:
68
,
},
margin
:
0
,
(
error
)
=>
{
},
if
(
error
)
console
.
error
(
error
);
(
error
)
=>
{
console
.
log
(
'success!'
);
if
(
error
)
console
.
error
(
error
);
},
console
.
log
(
'success!'
);
);
},
);
}
});
});
</
script
>
</
script
>
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