fix: git branch name (#771)

This commit is contained in:
三咲智子 Kevin Deng 2023-01-04 21:41:48 +08:00 committed by GitHub
parent 8a66174477
commit 9a167ee990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -36,7 +36,7 @@ const handleShowCommit = () => {
<template #content>
<div font-mono>
<span>{{ buildInfo.env === 'release' ? `v${buildInfo.version}` : buildInfo.env }}</span>
<span v-if="showCommit"> ({{ buildInfo.commit.slice(0, 7) }})</span>
<span v-if="showCommit"> ({{ buildInfo.commit.slice(0, 7) }}@{{ buildInfo.branch }})</span>
</div>
</template>
</SettingsItem>