Skip to content

Commit

Permalink
chore(showInfo): 缩短显示的hash为四位
Browse files Browse the repository at this point in the history
Signed-off-by: crrashh1542 <[email protected]>
  • Loading branch information
crrashh1542 committed Aug 13, 2023
1 parent 7cc64b3 commit 50e4f0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/functions/showInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* 此脚本用于在控制台中显示本项目相关信息
* @author crrashh1542
* @version 2.0.1
* @version 2.0.2
*/

import repoInfo from '../../package.json'
Expand All @@ -17,7 +17,6 @@ const [buildTime, buildHash, buildEnv, buildBranch] =
[buildInfo.time, buildInfo.hash, buildInfo.env, buildInfo.branch]
const shortHash = buildHash.substring(0, 4)
let shownTime = moment(buildTime).format('YYMMDD-HHmm')
console.log(shownTime);

export default function showInfo() {
let styleName = `font-size: 14px;
Expand Down

0 comments on commit 50e4f0d

Please sign in to comment.