add build time in about page

This commit is contained in:
MaysWind
2020-11-18 23:48:33 +08:00
parent d873778357
commit 9673cd28c6
6 changed files with 11 additions and 0 deletions
+3
View File
@@ -3,5 +3,8 @@ export default {
let version = process.env.VERSION || 'unknown';
let commitHash = process.env.COMMIT_HASH || 'unknown';
return `${version}-${commitHash.substr(0, Math.min(10, commitHash.length))}`;
},
getBuildTime: () => {
return process.env.BUILD_UNIXTIME;
}
};