chore: version info modal

This commit is contained in:
jialin
2024-07-12 12:06:17 +08:00
parent c5327d3e56
commit 320db56fbe
38 changed files with 334 additions and 108 deletions
+1 -1
View File
@@ -9,5 +9,5 @@ export const getBranchInfo = () => {
.execSync(`git tag --contains ${latestCommit}`)
.toString()
.trim();
return { version: versionTag, commitId: latestCommit };
return { version: versionTag || 'dev', commitId: latestCommit.slice(0, 7) };
};