mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
add version in login page
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
getVersion: () => {
|
||||
let version = process.env.VERSION || 'unknown';
|
||||
let commitHash = process.env.COMMIT_HASH || 'unknown';
|
||||
return `${version}-${commitHash.substr(0, Math.min(10, commitHash.length))}`;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user