Skip to content

Commit 6f0b89f

Browse files
committed
fix(track): track function ignores color argument
1 parent b995b96 commit 6f0b89f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/QrcodeStream.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
9595
trackRepaintFunction() {
9696
if (this.track === true) {
97-
return thinSquare({ color: "red" });
97+
return thinSquare({ color: "#ff0000" });
9898
} else if (this.track === false) {
9999
return null;
100100
} else {

src/misc/track-func.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function thinSquare({ color }) {
77
bottomRightCorner
88
} = location;
99

10-
ctx.strokeStyle = "red";
10+
ctx.strokeStyle = color;
1111

1212
ctx.beginPath();
1313
ctx.moveTo(topLeftCorner.x, topLeftCorner.y);

0 commit comments

Comments
 (0)