dashboard
repositories
filestore
activity
search
login
drone
/
drone-web
无人机操作系统
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Merge branch 'demo' of http://s16s652780.51mypc.cn:49896/r/yskj/iot_drone_w...
husq
2023-09-18
c71f0ccaff9d445bc3458f1118c3d9657e5b2f1c
[drone/drone-web.git]
/
src
/
utils
/
uuid.ts
1
2
3
4
5
6
export function uuidv4 () {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
const r = Math.random() * 16 | 0; const v = c === 'x' ? r : (r & 0x3 | 0x8)
return v.toString(16)
})
}