mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 18:24:26 +08:00
use git short revision style
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ export default {
|
|||||||
let commitHash = process.env.COMMIT_HASH;
|
let commitHash = process.env.COMMIT_HASH;
|
||||||
|
|
||||||
if (commitHash) {
|
if (commitHash) {
|
||||||
return `${version} (${commitHash.substr(0, Math.min(10, commitHash.length))})`
|
return `${version} (${commitHash.substr(0, Math.min(7, commitHash.length))})`
|
||||||
} else {
|
} else {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user