refactor: get short commit
This commit is contained in:
parent
f98c667613
commit
bcf0965795
6 changed files with 11 additions and 8 deletions
|
@ -41,7 +41,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) }}@{{ buildInfo.branch }})</span>
|
||||
<span v-if="showCommit"> ({{ buildInfo.shortCommit }}@{{ buildInfo.branch }})</span>
|
||||
</div>
|
||||
</template>
|
||||
</SettingsItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue