mirror of
https://github.com/PlayEdu/backend
synced 2025-06-22 06:12:50 +08:00
var => let
This commit is contained in:
parent
f848e31a86
commit
75921f6e10
@ -17,9 +17,9 @@ export function dateFormat(dateStr: string) {
|
||||
}
|
||||
|
||||
export const generateUUID = (): string => {
|
||||
var guid = "";
|
||||
for (var i = 1; i <= 32; i++) {
|
||||
var n = Math.floor(Math.random() * 16.0).toString(16);
|
||||
let guid = "";
|
||||
for (let i = 1; i <= 32; i++) {
|
||||
let n = Math.floor(Math.random() * 16.0).toString(16);
|
||||
guid += n;
|
||||
if (i === 8 || i === 12 || i === 16 || i === 20) guid += "-";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user