Skip to content

Commit 7065250

Browse files
committed
fix: 修复视频路径,使用 BASE_URL 适配 GitHub Pages 子路径部署
1 parent 476d3d2 commit 7065250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function Header({ title, leetcodeUrl, githubUrl }: HeaderProps) {
8585
className={styles.video}
8686
controls
8787
autoPlay
88-
src="/video.mp4"
88+
src={`${import.meta.env.BASE_URL}video.mp4`}
8989
>
9090
您的浏览器不支持视频播放
9191
</video>

0 commit comments

Comments
 (0)