resolve conflict

This commit is contained in:
none
2023-03-06 16:07:49 +08:00
parent 2309710f27
commit 6bfef38146
5 changed files with 234 additions and 6 deletions

View File

@@ -15,3 +15,13 @@ export function clearToken() {
export function dateFormat(dateStr: string) {
return moment(dateStr).format("YYYY-MM-DD HH:mm");
}
export const generateUUID = (): string => {
var guid = "";
for (var i = 1; i <= 32; i++) {
var n = Math.floor(Math.random() * 16.0).toString(16);
guid += n;
if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-";
}
return guid;
};