fix: hash url

This commit is contained in:
hamster1963 2024-12-19 17:03:09 +08:00
parent b8ec538fd9
commit b8f991a80b

View File

@ -29,7 +29,11 @@ const Footer: React.FC = () => {
<a href={"https://github.com/hamster1963/nezha-dash"} target="_blank">
nezha-dash
</a>
{import.meta.env.VITE_GIT_HASH && <span className="ml-1">({import.meta.env.VITE_GIT_HASH})</span>}
{import.meta.env.VITE_GIT_HASH && (
<a href={"https://github.com/hamster1963/nezha-dash-v1/commit/" + import.meta.env.VITE_GIT_HASH} className="ml-1">
({import.meta.env.VITE_GIT_HASH})
</a>
)}
</p>
</section>
</section>