版本号生成策略
Build and Deploy / build (push) Successful in 1m4s

This commit is contained in:
cheney
2026-04-17 10:26:51 +08:00
parent 044e4680f9
commit 826419fdbc
5 changed files with 13 additions and 4 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { useState } from 'react'
import { VERSION } from './version'
import { sm3Digest, sm3Hmac } from './utils/algorithm/sm3'
import { sm4Encrypt, sm4Decrypt } from './utils/algorithm/sm4'
@@ -288,7 +289,7 @@ function App() {
{/* 页脚 */}
<footer style={{ marginTop: '2rem', padding: '1rem', borderTop: '1px solid #ccc', textAlign: 'center' }}>
<p>© 2026 安全算法计算工具</p>
<p>版本号: V1.0-{new Date().toISOString().slice(0, 19).replace(/[-:T]/g, '')}</p>
<p>版本号: {VERSION}</p>
</footer>
</div>
)
+1
View File
@@ -0,0 +1 @@
export declare const VERSION: string;
+1
View File
@@ -0,0 +1 @@
export const VERSION = "V1.0-20260417022550";