Skip to content

Commit a8ddcb0

Browse files
committed
fix: 修复二维码图片路径和提示文字
- 下载正确的微信交流群二维码图片 - 修复二维码图片路径使用 BASE_URL - 更新悬浮球提示文字为完整说明
1 parent b2803db commit a8ddcb0

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

public/qrcode.png

328 KB
Loading

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function App() {
7474
onPlaybackRateChange={playerActions.setPlaybackRate}
7575
/>
7676

77-
<FloatingBall qrCodeUrl="/qrcode.svg" />
77+
<FloatingBall qrCodeUrl={`${import.meta.env.BASE_URL}qrcode.png`} />
7878
</div>
7979
)
8080
}

src/components/FloatingBall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function FloatingBall({ qrCodeUrl }: FloatingBallProps) {
2121
{isHovered && (
2222
<div className={styles.qrCode}>
2323
<img src={qrCodeUrl} alt="微信交流群二维码" className={styles.qrImage} />
24-
<p className={styles.qrText}>扫码加入交流群</p>
24+
<p className={styles.qrText}>使用微信扫码发送"leetcode"加入算法交流群</p>
2525
</div>
2626
)}
2727
</div>

0 commit comments

Comments
 (0)